From 197b4b7064a0845883edb14ad3939e4d663e614b Mon Sep 17 00:00:00 2001 From: Todd E Johnson Date: Thu, 25 Jul 2019 22:51:07 -0500 Subject: [PATCH] Forget now has --prune which might be more efficent. --- usr/local/sbin/restic_backup.sh | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) 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 &