How to keep two backups for end of month and first day of a month [Support] #1306
Labels
No labels
blocked
breaking
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#1306
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
What I'm trying to do and why
Hello, I wanted to keep backups that were taken on the first and last days of each month. For the time being, I was able to keep the last day of the month using
keep_monthly=-1, but I'm not sure how to add the first day of the month as well.Steps to reproduce
No response
Actual behavior
No response
Expected behavior
No response
Other notes / implementation ideas
No response
borgmatic version
2.1.5
borgmatic installation method
package
Borg version
borg 1.4.2
Python version
Python 3.13.13
Database version (if applicable)
No response
Operating system and version
Fedora Linux 43 (WSL) x86_64
Unfortunately I don't think that's currently possible using borgmatic's
keep_*options, which are built atop Borgprune --keep-*flags. If you need a really custom pruning strategy like this, you could try disabling automatic pruning entirely and then useborgmatic deleteto delete archives that you don't want to keep. In that scenario though, you'd be responsible for determining those archives yourself.