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