Prune simulator

bea

Active Member
Dec 25, 2020
51
4
28
25
Hi.

I'm playing with the prune simulator and I see something I don't understand. See the attached image.

I am doing a daily backup (Monday to Sunday at 14:30).

If I set 2 in the keep-hourly retention option, according to the documentation -and the simulator's help- I should keep backups for the last 2 hours.

keep-hourly <N>
Keep backups for the last <N> hours.

As I'm doing backups only once a day, in the last two hours I could only have 1 or 0 backups. However, the simulator keeps 2 backups.

I did a similar test for the keep-daily option and got the same problematic results, so I guess the problem applies to every time unit.

If my observations are correct, either the simulator is wrong (I have not done on-production tests) or the documentation is wrong. In the case it is the documentation, perhaps it could be fixed by something like this:

keep-hourly <N>
Keep <N> hourly-configured backups.

And do the same change for every time unit.

That would match the case I am showing here, I guess it would require more tests to check if my proposal is valid for every case.

Or perhaps I got completely confused and I'm wasting my time here... please let me know.
 

Attachments

  • prune-simulator.png
    prune-simulator.png
    146.7 KB · Views: 14
Last edited:
Hi,
this is what "Hours without backups do not count" means. Keep hourly will only consider hours with backups and then keep backups for the last two hours with at least one backup.
 
  • Like
Reactions: Chris