Feature Suggestion: Keep a specific number of backups

As title says, if I specify a number of revisions to keep, prune gets rid of older-than revisions.

--keep-revision 20 would only keep the last 20 revisions and delete the older ones (so backup 21 would wipe out revision 1).

1 Like

Alternate name -max-revisions.

Does this look more self-explanatory?

cc @Christoph since iā€™m bad with naming :stuck_out_tongue:.

1 Like

That sounds like a good idea, where we specify --max-revisions when backing up, and --keep-revisions when pruning. Iā€™d be happy with either one implemented, though!

1 Like

Hi! I think it would only apply to Prune, I feel Backup should not overwrite or replace revisions.
(Next revision is next revision regardless of how many is there, Prune takes care of Prune)

1 Like

Is this still planned? I want my last 3 daily backups kept. I currently have it -keep 0:3, but if it skips a day or whatever, it would then delete backups I wouldnā€™t want deleting. I would like it to keep the last 3, until a successful backup is made.