delete backup vm by time

Dzung

Well-Known Member
Feb 20, 2019
89
2
48
34
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.