From 6035d52eeb2094ee344c60afe5556734a89c846b Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Fri, 25 Feb 2022 11:38:28 -0300 Subject: src/bin/backup: exclude ~/.cache from backup For two reasons: 1. to reduce the size of the backup. If there's a candidate folder to be removed in order to decrease the size of the backup, ~/.cache is that folder; 2. to stop errors during the backup to happen. It's common for files to come and go while the backup is running, and borg sometimes starts backing up a file and it vanishes in the middle of the backup, and returns an error. In the end the backup finishes sucessfully, but the backup script halts. --- src/bin/backup | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/bin/backup b/src/bin/backup index 434eeef0..631e28fa 100755 --- a/src/bin/backup +++ b/src/bin/backup @@ -69,6 +69,7 @@ borg init -e repokey-blake2 suyin:usurpador-borg ||: borg key export suyin:usurpador-borg ~/archive/usurpador-borg-key.txt borg create \ + --exclude ~/.cache \ --stats \ --compression lzma,9 \ --comment "${2:-}" \ -- cgit v1.3