From 6662783dc73ca1578711ab8947d51a800aa48a7b Mon Sep 17 00:00:00 2001 From: Dave Lane Date: Tue, 4 May 2021 04:05:50 +0000 Subject: [PATCH] added --prune flag to 'forget' command to get it to remove old backups to clear disk space --- run-restic.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/run-restic.sh b/run-restic.sh index cba39d3..b0d9b8a 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 --tag $TAG --keep-daily 7 --keep-weekly 5 --keep-monthly 12 --keep-yearly 7" +CLEAN="-r $DST --password-file $PW forget --prune --tag $TAG --keep-daily 7 --keep-weekly 5 --keep-monthly 12 --keep-yearly 7" # create a snapshot log "running snapshot" $NICE $CMD $ARGS >> $LOG