Delete old backup when Max Backup limit is reached

EdouardP

New Member
Aug 18, 2016
5
0
1
46
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
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!