From a79f30a1d780b044894c2b9d404a6e99b43f7cd6 Mon Sep 17 00:00:00 2001 From: Dave Lane Date: Thu, 25 Aug 2022 22:53:44 +0000 Subject: [PATCH] Added --cleanup-cache as well. --- run-restic.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/run-restic.sh b/run-restic.sh index 109908b..a9022ca 100755 --- a/run-restic.sh +++ b/run-restic.sh @@ -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