From a7e4853b9fca49439239e002f7b121e887529a5f Mon Sep 17 00:00:00 2001
From: Dmitriy Safronov <zimniy@cyberbrain.pw>
Date: Sat, 22 Jan 2022 22:46:17 +0300
Subject: [PATCH] hardcoded excludes

---
 ha-rsync          | 5 +++++
 ha-rsync.excludes | 6 ------
 2 files changed, 5 insertions(+), 6 deletions(-)

diff --git a/ha-rsync b/ha-rsync
index b424cca..3881d2f 100644
--- a/ha-rsync
+++ b/ha-rsync
@@ -2,6 +2,11 @@
 
 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}/" \
     /config
diff --git a/ha-rsync.excludes b/ha-rsync.excludes
index 0db410c..ac65a26 100644
--- a/ha-rsync.excludes
+++ b/ha-rsync.excludes
@@ -1,13 +1,7 @@
-/.git
-/.gitignore
-/README.md
-
 /deps
 /image
 /tts
 
-.HA_VERSION
-
 /.cloud/*
 /.storage/*
 
-- 
GitLab