Add -keep-last / --keep-secondly in retention #98

Closed
opened 2018-10-04 18:12:48 +00:00 by bozoh · 2 comments

Add:

keep-last / keep-secondly

support

borg 1.1.7 have this prune options

  • --keep-secondly
  • --keep-last

as mention in doc site https://borgbackup.readthedocs.io/en/stable/usage/prune.html

The --keep-last N option is doing the same as --keep-secondly N (and it will keep the last N archives under the assumption that you do not create more than one backup archive in the same second).

Add: keep-last / keep-secondly support borg 1.1.7 have this prune options - --keep-secondly - --keep-last as mention in doc site https://borgbackup.readthedocs.io/en/stable/usage/prune.html >>The --keep-last N option is doing the same as --keep-secondly N (and it will keep the last N archives under the assumption that you do not create more than one backup archive in the same second).
Owner

Great idea! I hadn't seen these new options. Should be pretty straight-forward to add, assuming we don't care that they don't work in earlier versions of Borg.

Great idea! I hadn't seen these new options. Should be pretty straight-forward to add, assuming we don't care that they don't work in earlier versions of Borg.
Owner

Done! And just released in borgmatic 1.2.7.

I opted to call the new option keep_secondly because that seemed more consistent with the other keep_* options than keep_last did.

Done! And just released in borgmatic 1.2.7. I opted to call the new option `keep_secondly` because that seemed more consistent with the other `keep_*` options than `keep_last` did.
Sign in to join this conversation.
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: borgmatic-collective/borgmatic#98
No description provided.