[SOLVED] Backup retention ignored?

Dunuin

Distinguished Member
Jun 30, 2020
14,796
4,718
258
Germany
Hi,

As far as I know when using different backup retentions all will be applied in parallel so the results should look like the most aggressive one. And PBS datastores backup retentions can't handle namespaces yet.

What I did is:
1.) "PVE webUI: Datacenter -> Storage -> My PBS storage pointing to namespace MainCluster/Daily -> Edit -> Backup Retention": keep-daily: 12 + Maximum protected: -1
2.) "PVE webUI: Datacenter -> Backups -> backup job using my PBS storage that points to namespace MainCluster/Daily -> Edit -> Backup Retention": keep-all: 1
3.) "PBS webUI: Datastore -> My Datastore -> Prune & GC": keep-last: 999

So I would have guessed that I only see 12 backup snapshots in my MainCluster/Daily namespace becasue that is the most aggressive one, but there are 19. So looks like the retention setup in the PVEs PBS storage isn't working.
 
Last edited:
When setting the retention for 2.) to "keep-daily: 12" too (in ddition to 1.)), then PBS will indeed only keep 12 daily backups.
So how it comes that the "PVE webUI: Datacenter -> Storage -> My PBS storage" retentions will be ignored?
 
if you have an explicit retention setting on your job, that will be used INSTEAD of the one configured for the target storage (so you can have multiple jobs, those without an explicit setting will fall back to the one from storage.cfg)
 
  • Like
Reactions: Dunuin