diff --git a/usr/local/sbin/restic_backup.sh b/usr/local/sbin/restic_backup.sh index 5f849be..05ffb30 100644 --- a/usr/local/sbin/restic_backup.sh +++ b/usr/local/sbin/restic_backup.sh @@ -71,6 +71,7 @@ wait $! restic forget \ --verbose \ --tag $BACKUP_TAG \ + --prune --group-by "paths,tags" \ --keep-daily $RETENTION_DAYS \ --keep-weekly $RETENTION_WEEKS \ @@ -78,13 +79,6 @@ restic forget \ --keep-yearly $RETENTION_YEARS & wait $! -# Remove old data not linked anymore. -# See restic-prune(1) or http://restic.readthedocs.io/en/latest/060_forget.html -restic prune \ - --option b2.connections=$B2_CONNECTIONS \ - --verbose & -wait $! - # Check repository for errors. # NOTE this takes much time (and data transfer from remote repo?), do this in a separate systemd.timer which is run less often. #restic check &