commit 745cc451f6291c9b2adbc2657ccdf978331a2e68
parent 5130a7f1e63b7d5e99f55ad454add80633899c0c
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date: Wed, 17 Feb 2021 22:11:40 +0100
backup: exclude more temporary files from backup
Diffstat:
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git a/.local/bin/backup b/.local/bin/backup
@@ -26,6 +26,7 @@ backup_home_etc() {
rsync -ravzhe ssh --delete /etc/ "$1"/etc/
rsync -ravzhe ssh --delete --progress \
--exclude=tmp \
+ --exclude=Downloads \
--exclude=.cache \
--exclude=videos/tmp \
--exclude=tags \
@@ -33,6 +34,8 @@ backup_home_etc() {
--exclude='.config/surf/cache' \
--exclude='.mail/.notmuch' \
--exclude='*.mbsyncstate' \
+ --exclude='*.uidvalidity' \
+ --exclude='*.core' \
~/ "$1"/home/ad/
}