1
0
Fork 0

Clean up of backups by tag needs to use group-by

This commit is contained in:
trotFunky 2020-06-21 12:46:41 +01:00
parent 7e76730c19
commit 8355b7a711

View file

@ -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"