Skip to content

Commit

Permalink
Slight backup tweaks
Browse files Browse the repository at this point in the history
- Add compaction
- Backup all of ~ (minus some exceptions)
  • Loading branch information
awseward committed Apr 21, 2024
1 parent c3d2106 commit 2bbd792
Showing 1 changed file with 14 additions and 13 deletions.
27 changes: 14 additions & 13 deletions tag-macos/config/backups/rsync-net.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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=$?

Expand All @@ -74,6 +74,7 @@ borg prune \
--keep-daily 7 \
--keep-weekly 12 \
--keep-monthly 18 \
&& borg compact --verbose

prune_exit=$?

Expand Down

0 comments on commit 2bbd792

Please sign in to comment.