Father and child namespace pruning policy

pmarini

New Member
Nov 24, 2026
2
0
1
Hello,

I'm trying to figure out if I'm missing something in the following scenario:
  • On namespace root01 I have set up a Prune Job with Keep Last=14 and Max Depth=1
  • On namespace root01/nested01 I have setup a Prune Job with Keep Last=7 and Max Depth=0
  • On namespace root01/nested02 I have setup a Prune Job with Keep Last=30 and Max Depth=0
  • On namespace root01/nested03 I haven't setup any Prune Job
It happens that:
  • On root01/nested01 backups are pruned correctly once there are 7 backups
  • On root01/nested03 backups are pruned correctly once there are 14 backups via inheritance
  • On root01/nested02 backups are pruned after 14 days even if I specify Keep Last=30.
So the question is: is jobs pruning policy applied only when the child namespace has a Keep Last <= Keep Last of the father namespace?

Thanks!

Pietro
 
Max Depth=1 lets the root01 job reach the groups in all three immediate child namespaces. The jobs run independently, so the nested02 job can keep up to 30 snapshots per group when it runs, but the parent job can still prune that same group down to 14. Keep Last counts snapshots. With a daily backup that can look like a limit of about 14 days. PBS prune jobs

I'd check the parent job's existing task log for root01/nested02 to see which job actually pruned it. For separate retention, you can scope the parent to Max Depth=0 and use child jobs at depth 0 with 7, 30, and 14 respectively. Give nested03 its own job if you want its groups to keep the current 14-snapshot policy. Check the proposed retention in the simulator before enabling the new schedules. PBS prune simulator
 
  • Like
Reactions: Johannes S and UdoB
Thanks @sanoc_mars for your reply! However my question has not been answered.

is jobs pruning policy applied only when the child namespace has a Keep Last <= Keep Last of the father namespace?