From b7b977aa0e77b8cef828c1d69ccdc48054c6602b Mon Sep 17 00:00:00 2001 From: "flyingscorpio@arch-desktop" Date: Mon, 26 Oct 2020 18:37:56 +0100 Subject: [PATCH] Add BORG_EXCLUDES --- borg_backup.sh | 21 +++------------------ secrets.template | 6 ++++++ 2 files changed, 9 insertions(+), 18 deletions(-) diff --git a/borg_backup.sh b/borg_backup.sh index 96386c1..48f3cd9 100755 --- a/borg_backup.sh +++ b/borg_backup.sh @@ -65,27 +65,12 @@ borg create \ --show-rc \ --compression lz4 \ --exclude-caches \ - --exclude '/home/*/.*/*' \ - --exclude '/home/*/.*' \ - --exclude '/home/*/builds/*' \ - --exclude '/home/*/github_dotfiles/*' \ - --exclude '/home/*/github_misc/*' \ - --exclude '/home/*/Downloads/*' \ - --exclude '/home/*/Desktop/*' \ - --exclude '/home/*/Keepass/*' \ - --exclude '/home/*/Lessons/*' \ - --exclude '/home/*/Music/*' \ - --exclude '/home/*/PersonnalScripts/*' \ - --exclude '/home/*/Podcasts/*' \ - --exclude '/home/*/RootMe/*' \ - --exclude '/home/*/SetupCockpit/*' \ - --exclude '/home/*/SRC/*' \ - --exclude '/home/*/VirtualBox VMs/*' \ - --exclude '/home/*/Videos/*' \ - --exclude '/home/*/Documents/MBSR/*' \ --exclude '/var/cache/*' \ --exclude '/var/log/*' \ --exclude '/var/tmp/*' \ + --exclude '/home/*/.*/*' \ + --exclude '/home/*/.*' \ + "$BORG_EXCLUDES" \ ::'{hostname}-{now}' \ /etc \ diff --git a/secrets.template b/secrets.template index 6980195..c77ed27 100644 --- a/secrets.template +++ b/secrets.template @@ -3,3 +3,9 @@ SETUP_COCKPIT_EMAIL='' SSH_REPO='user@ho.st' BORG_PASSPHRASE='' +BORG_EXCLUDES=" +--exclude '' \ +--exclude '' \ +--exclude '' \ +--exclude '' \ +"