diff --git a/ha-rsync b/ha-rsync index 3881d2f2d3152b3da5520f10af2d253c070a68a4..1a23cf9515becd2da31c6d245565a5da7db3ea69 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 ac65a26192322bc33bc40e52fd8726ff36a900e5..eba1fb9b4c7fe722a0f3e97ddf809f833cdc6580 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