From 8355b7a7114ea9174475fae7e364838f486d4c56 Mon Sep 17 00:00:00 2001 From: trotFunky Date: Sun, 21 Jun 2020 12:46:41 +0100 Subject: [PATCH] Clean up of backups by tag needs to use group-by --- VPS/restic-backup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/VPS/restic-backup.sh b/VPS/restic-backup.sh index 6557dc1..44c969c 100755 --- a/VPS/restic-backup.sh +++ b/VPS/restic-backup.sh @@ -76,7 +76,7 @@ fi rm -rf temp/* if [ -z "$error_message" ]; then - restic forget --verbose --prune --tag "$1" --keep-last "$backup_count" > forget_output.log 2>&1 + restic forget --verbose --prune --group-by tag --tag "$1" --keep-last "$backup_count" > forget_output.log 2>&1 fi if [ $? -ne 0 ]; then error_message="Restic forget failed ! See log bellow.\n\n"