Clean up of backups by tag needs to use group-by
This commit is contained in:
parent
7e76730c19
commit
8355b7a711
1 changed files with 1 additions and 1 deletions
|
@ -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"
|
||||
|
|
Loading…
Add table
Reference in a new issue