Max backups

TobiasE

New Member
Dec 6, 2017
24
1
1
45
I wonder exactly how proxmox backups work.
I can schedule backups to run a number of times per week, and also limit the number of backups per machine which are kept.
However I would expect that when the maximum number of backups is exceeded I would expect the oldest backup to be overwritten for each host.
However I am not quite sure this is the case.
Can I configure it in such a way? Or will I have to set unlimited backups and then remove the backups using cronjob external to proxmox?
 
INFO: starting new backup job: vzdump 104 --remove 0 --mode snapshot --storage <storage> --node <node> --compress lzo
ERROR: Backup of VM 104 failed - only 2 backup(s) allowed - please consider to remove old backup files.
INFO: Backup job finished with errors
TASK ERROR: job errors
So --remove is set to 0 how do I set it to 1?
 
This setup is for automatic backups via cron. If you start the manually, you need to remove old backups manually.