From 715a7b466b67cf3722d81155b8ffbdc0370b9555 Mon Sep 17 00:00:00 2001
From: Dmitriy Safronov <zimniy@cyberbrain.pw>
Date: Sun, 23 Jan 2022 02:27:43 +0300
Subject: [PATCH] change excludes

---
 ha-rsync          |  2 --
 ha-rsync.excludes | 17 +++++++++++------
 2 files changed, 11 insertions(+), 8 deletions(-)

diff --git a/ha-rsync b/ha-rsync
index 3881d2f..1a23cf9 100644
--- a/ha-rsync
+++ b/ha-rsync
@@ -3,9 +3,7 @@
 rsync -a \
     --exclude-from='/ha-rsync.excludes' \
     --exclude='/.git' \
-    --exclude='/.gitignore' \
     --exclude='/.HA_VERSION' \
-    --exclude='/README.md' \
     --exclude='/secrets.yaml' \
     --delete-after \
     "${GIT_SYNC_ROOT:-/tmp/git}/${GIT_SYNC_DEST:-config}/" \
diff --git a/ha-rsync.excludes b/ha-rsync.excludes
index ac65a26..eba1fb9 100644
--- a/ha-rsync.excludes
+++ b/ha-rsync.excludes
@@ -1,10 +1,15 @@
-/deps
-/image
-/tts
+# Don't overwrite files created from UI
+/automations.yaml
+/scenes.yaml
+/scripts.yaml
 
+# Don't overwrite cloud connection settings
 /.cloud/*
+
+# Don't overwrite local settings
 /.storage/*
 
-/automations.yaml
-/scenes.yaml
-/scripts.yaml
+# Don't overwrite local dirs
+/deps
+/image
+/tts
-- 
GitLab