delete backup vm by time

Dzung

Well-Known Member
Feb 20, 2019
86
2
48
33
Hello!
I am want to delete all VM backups in the datastore, if the backup is overdue for example 1 month. I see "proxmox-backup-client prune" but it comes with the option to keep 1 last backup that I don't want to save any backups of vm deleted more than 1 month, is there any config for this ?
 
If I understand you correctly and you want to remove all backups of VMs that weren't backupd in the last month, no, PBS doesn't support this.
I don't quite see the use case for this either, as the point of a backup is to retain data in the case the origin of the data was destroyed.
 
"If I understand you correctly and you want to remove all backups of VMs that weren't backupd in the last month" yes I want this config.
because of my case, I create a lot of VMs and delete them often so I only want to save backup for 1 month ( for exist VM and deleted VM), VMs don't exist its backup still stays too long not to delete itself, I had to delete backups one by one
 
That's not possible with PBS. However, you can write a script that does that for you using the PBS API.
 

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!