Added --cleanup-cache as well.

This commit is contained in:
Dave Lane 2022-08-25 22:53:44 +00:00
parent 9b9a4afad8
commit a79f30a1d7

View file

@ -51,7 +51,7 @@ fi
# run the snapshot
ARGS="-r $DST --password-file $PW backup --tag $TAG --exclude-file=/restic.excludes --files-from /restic.files"
# clean up old snapshots
CLEAN="-r $DST --password-file $PW forget --prune --tag $TAG --keep-daily 4 --keep-weekly 3 --keep-monthly 6 --keep-yearly 3"
CLEAN="-r $DST --password-file $PW forget --prune --cleanup-cache --tag $TAG --keep-daily 4 --keep-weekly 3 --keep-monthly 6 --keep-yearly 3"
# prune 'forgotten' snapshots
PRUNE="-r $DST --password-file $PW prune
# create a snapshot