From 2bbd7924b5c02a386fdbd6104ecff75de6df5346 Mon Sep 17 00:00:00 2001 From: Andrew Seward Date: Sat, 20 Apr 2024 21:29:26 -0700 Subject: [PATCH] Slight backup tweaks - Add compaction - Backup all of ~ (minus some exceptions) --- tag-macos/config/backups/rsync-net.sh | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/tag-macos/config/backups/rsync-net.sh b/tag-macos/config/backups/rsync-net.sh index 14b9dae..f2fb407 100755 --- a/tag-macos/config/backups/rsync-net.sh +++ b/tag-macos/config/backups/rsync-net.sh @@ -48,19 +48,19 @@ info_and_hcio start <<< 'Starting backup' # the machine this script is currently running on: borg create \ - --verbose \ - --list \ - --stats \ - --show-rc \ - --exclude-caches \ - --checkpoint-interval 300 \ - \ - ::'{hostname}-{now}' \ - \ - ~/books \ - ~/scans \ - ~/uncategorized \ - ~/stale_downloads \ + --verbose \ + --list \ + --stats \ + --show-rc \ + --exclude-caches \ + --checkpoint-interval 300 \ + --pattern '! **/Library/Application Support/Fusetools' \ + --pattern '! **/*Cache*' \ + --pattern '! **/*cache*' \ + \ + ::'{hostname}-{now}' \ + \ + ~ \ backup_exit=$? @@ -74,6 +74,7 @@ borg prune \ --keep-daily 7 \ --keep-weekly 12 \ --keep-monthly 18 \ + && borg compact --verbose prune_exit=$?