aboutsummaryrefslogtreecommitdiff
path: root/src/bin
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2022-02-25 11:38:28 -0300
committerEuAndreh <eu@euandre.org>2022-02-25 11:38:30 -0300
commit6035d52eeb2094ee344c60afe5556734a89c846b (patch)
tree0d2ac1f674384f0d55b11688c90b3f9e0d9fe8ea /src/bin
parentTODOs.md: Fix link to repository address (diff)
downloaddotfiles-6035d52eeb2094ee344c60afe5556734a89c846b.tar.gz
dotfiles-6035d52eeb2094ee344c60afe5556734a89c846b.tar.xz
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.
Diffstat (limited to 'src/bin')
-rwxr-xr-xsrc/bin/backup1
1 files changed, 1 insertions, 0 deletions
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:-}" \