Have installed Proxmox Backup Server, and has been working great for a few weeks now.
Trying to understand how pruning works, and ran the simulator at:
https://pbs.proxmox.com/docs/prune-simulator/
Used these parameters, similar to what I am using for real:
Prune options
last: 2
daily: 6
weekly: 4
monthly: 6
Simulated backup schedule
day of week: Mo, Tu, We, Th, Fr, Sa, Su
backup schedule: 02:00
number of weeks: 16
This shows the following backups having been retained:
2022-09-13 Tu last: 1
2022-09-12 Mo last: 2
2022-09-11 Su daily: 1
2022-09-10 Sa daily: 2
2022-09-09 Fr daily: 3
2022-09-08 Th daily: 4
2022-09-07 We daily: 5
2022-09-06 Tu daily: 6
2022-09-04 Su weekly: 1
2022-08-28 Su weekly: 2
2022-08-21 Su weekly: 3
2022-08-14 Su weekly: 4
2022-07-31 Su monthly: 1
2022-06-30 Th monthly: 2
2022-05-31 Tu monthly: 3
Note the monthly ones:
2022-08-31 Wed (last day of August) was not retained, as expected from the comments on the simulator page:
"The retention options are processed in the order given above. Each option only covers backups within its time period. The next option does not take care of already covered backups. It will only consider older backups.
For example, in a week covered by keep-weekly, one backup is kept while all others are removed; keep-monthly then does not consider backups from that week anymore, even if part of the week is part of an earlier month."
2022-07-31 Sun (last day of July) WAS retained, also as expected, as it was a Sunday - so was originally kept as a weekly backup.
So, my question is, why were 2022-06-30 and 2022-05-31 retained? These were both mid-week, so should have been discarded because the following Sunday backups would have been retained as weekly backups?
In my own setup, which has only been running for about 6 weeks, the 2022-08-31 backup HAS been discarded - I don't have enough history to see what has happened for the other monthly backups.
Am I misunderstanding how the monthly retention works, or is there something wrong with the simulator?
Trying to understand how pruning works, and ran the simulator at:
https://pbs.proxmox.com/docs/prune-simulator/
Used these parameters, similar to what I am using for real:
Prune options
last: 2
daily: 6
weekly: 4
monthly: 6
Simulated backup schedule
day of week: Mo, Tu, We, Th, Fr, Sa, Su
backup schedule: 02:00
number of weeks: 16
This shows the following backups having been retained:
2022-09-13 Tu last: 1
2022-09-12 Mo last: 2
2022-09-11 Su daily: 1
2022-09-10 Sa daily: 2
2022-09-09 Fr daily: 3
2022-09-08 Th daily: 4
2022-09-07 We daily: 5
2022-09-06 Tu daily: 6
2022-09-04 Su weekly: 1
2022-08-28 Su weekly: 2
2022-08-21 Su weekly: 3
2022-08-14 Su weekly: 4
2022-07-31 Su monthly: 1
2022-06-30 Th monthly: 2
2022-05-31 Tu monthly: 3
Note the monthly ones:
2022-08-31 Wed (last day of August) was not retained, as expected from the comments on the simulator page:
"The retention options are processed in the order given above. Each option only covers backups within its time period. The next option does not take care of already covered backups. It will only consider older backups.
For example, in a week covered by keep-weekly, one backup is kept while all others are removed; keep-monthly then does not consider backups from that week anymore, even if part of the week is part of an earlier month."
2022-07-31 Sun (last day of July) WAS retained, also as expected, as it was a Sunday - so was originally kept as a weekly backup.
So, my question is, why were 2022-06-30 and 2022-05-31 retained? These were both mid-week, so should have been discarded because the following Sunday backups would have been retained as weekly backups?
In my own setup, which has only been running for about 6 weeks, the 2022-08-31 backup HAS been discarded - I don't have enough history to see what has happened for the other monthly backups.
Am I misunderstanding how the monthly retention works, or is there something wrong with the simulator?