Prune restic repo
This commit is contained in:
parent
e87358c988
commit
27f67ca27b
@ -41,6 +41,18 @@ export B2_ACCOUNT_KEY=$(getSecret "/server/mac-mini-1/b2-account-key")
|
||||
--exclude ".pnpm-store" \
|
||||
--exclude ".Trashes" | jq 'select(.message_type | test("summary"))' > /tmp/restic-backup.json
|
||||
|
||||
/usr/local/bin/restic forget \
|
||||
--password-file <(source /Users/noahheague/.config/scripts/util/secret.sh; getSecret '/server/mac-mini-1/restic-key') \
|
||||
--keep-daily 7 \
|
||||
--keep-weekly 5 \
|
||||
--keep-monthly 12 \
|
||||
--keep-yearly 1 \
|
||||
-r b2:pfych-home-server-backup
|
||||
|
||||
/usr/local/bin/restic prune \
|
||||
--password-file <(source /Users/noahheague/.config/scripts/util/secret.sh; getSecret '/server/mac-mini-1/restic-key') \
|
||||
-r b2:pfych-home-server-backup
|
||||
|
||||
/Users/noahheague/.config/scripts/util/webhook.sh \
|
||||
-c "backup" \
|
||||
-m "Restic Backup Completed!"
|
||||
|
Loading…
Reference in New Issue
Block a user