Delete old backup when Max Backup limit is reached

EdouardP

New Member
Aug 18, 2016
5
0
1
48
Hi all,

I've configured backup everyday for the last 15 days, so I've set the max backup to 15.
The problem is I don't find how to configure Proxmox to automatically remove the oldest backup when the limit of 15 is reached.

I got this error message:
INFO: starting new backup job: vzdump 100 --remove 0 --mode snapshot --compress lzo --storage backups --node proxmox1
ERROR: Backup of VM 100 failed - only 15 backup(s) allowed - please consider to remove old backup files.
INFO: Backup job finished with errors
TASK ERROR: job errors

I would like the oldest backup to be removed automatically when the limit is reached instead of get an error.

Thanks for your help !

Edouard
 
remove the "--remove 0" option or set it to 1
then vzdump deletes old backups if there are more than allowed