PBS retention and prune simulator
See exactly which backups survive your keep-hourly, keep-daily, keep-weekly, keep-monthly and keep-yearly rules, two years out.
Proxmox Backup Server prune rules keep the most recent backup for each time bucket up to the limit you set. A backup is retained if at least one rule chooses to keep it. This simulator generates synthetic backups at your chosen frequency, applies the same algorithm PBS uses, and shows the result as a per-month timeline so you can dial in a policy visually instead of guessing.
Common policies
Your retention policy
What you keep
Backups generated over 2 years at the chosen frequency
730
Backups kept after prune
24
Backups pruned
706
24 months of retained backups
Each column is one month. Bar height is the number of backups retained that month.
How PBS prune works
- PBS groups backups into time buckets: hour of day, day of month, ISO week of year, calendar month, calendar year.
- For each keep-xxx rule, PBS keeps the most recent backup in each bucket, up to the rule's count. A backup is retained if at least one rule chooses to keep it.
- Rules combine with OR logic. keep-daily 7 + keep-weekly 4 does not keep 11 unique backups; it keeps 7 daily plus up to 4 more weekly that are not already kept as daily.
- This simulator runs the same algorithm over a synthetic series of backup timestamps at your selected frequency for 24 months, so the result reflects what PBS would actually keep.
About the simulator
Does this match the real PBS prune algorithm?
Why do my numbers not match keep-hourly + keep-daily exactly?
Should I set all five keep-xxx rules?
Does retention affect my storage cost linearly?
Put your retention policy into production
Apply the same rules to a Cloud-PBS managed datastore in minutes. No code changes on your Proxmox VE side.