summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Rettberg2018-08-22 12:15:21 +0200
committerSimon Rettberg2018-08-22 12:15:21 +0200
commit82e6be5d82f58425bd069b5088d2614fae448bb5 (patch)
tree9914e6b2a14e44315df53d5af3c862e10536c441
parent[borg] Actually use $BORG_VERSION (diff)
downloadsetup-scripts-82e6be5d82f58425bd069b5088d2614fae448bb5.tar.gz
setup-scripts-82e6be5d82f58425bd069b5088d2614fae448bb5.tar.xz
setup-scripts-82e6be5d82f58425bd069b5088d2614fae448bb5.zip
[borg] Ignore root's .cache too
-rwxr-xr-xborgbackup/create-repo1
1 files changed, 1 insertions, 0 deletions
diff --git a/borgbackup/create-repo b/borgbackup/create-repo
index 52e86be..3ff3c68 100755
--- a/borgbackup/create-repo
+++ b/borgbackup/create-repo
@@ -70,6 +70,7 @@ export BORG_REPO="ssh://${user}@${THIS_HOST}${basedir}/repo"
borg create --filter AME --list --stats --show-rc \\
--exclude-caches \\
--exclude '/home/*/.cache/*' \\
+ --exclude '/root/.cache/*' \\
--exclude '/var/cache/*' \\
--exclude '/var/tmp/*' \\
--exclude '/var/run/*' \\