2 years retention #362
Labels
No Label
bug
data loss
design finalized
good first issue
new feature area
question / support
security
waiting for response
No Milestone
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: borgmatic-collective/borgmatic#362
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Hello,
I have a need to keep a backup for 2 year. Is this actually possible to do that with borgmatic ?
thanks
Thanks for the question! The way to accomplish that is via the
keep_within
option inside theretention
section. Here's an example:More info in the Borg docs.
Please report back in a couple of years on whether that worked. ;)
hello @witten, if I may ask again :
let's take this example :
keep_within: 2y
keep_daily: 6
keep_weekly: 4
keep_monthly: 1
keep_yearly: 1
this means that currently I will have the last 6 daily backups, 4 backups for the last month, one backup for every last months, one backup for the past year << and this last will be kept for two years ?
I think that's correct except for the "and this last will be kept for two years" part. Here's the relevant part of the Borg docs:
That to me suggests that all archives within two years would be kept. Which sounds like perhaps not what you're looking for!
This might be a good candidate for a Borg feature request of some sort?
Your best bet, if you can space the storage space, may be just to do
keep_yearly: 2
. That would keep one archive that's two years old and one archive that's one year old.that's exactly what I was looking for. Thanks you sir.
Glad to hear it!