Support break-lock? #357
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 project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
borgmatic-collective/borgmatic#357
Loading…
Add table
Add a link
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
I'm backing up over SSH (very long backup). If the backup interrupts (connection broken, computer turned off) mid-backup, continuing backup seems to require "borg break-lock" command. It would be nice if borgmatic either automatically handles this situation, or supports the command so I don't have to manually re-enter the repository path and credentials..
A
borgmatic break-lockaction that wraps Borg's ownbreak-locksounds handy, and makes sense to me. And it appears thatbreak-locksucceeds silently if there's no lock in place. So it should be totally fine for borgmatic to loop over all configured repositories, breaking each one's lock in turn.Thank you for filing this idea!
I'm not so much into borg internals, but the documentation asks to be careful so I'm not sure how safe this is to do automaticalla: https://borgbackup.readthedocs.io/en/stable/usage/lock.html#borg-break-lock
Yeah, you shouldn't run
break-lockif the lock is legitimately there because Borg is running! For that reason, I could see makingborgmatic break-locktake an optional--repositoryparameter.A little late, but this is implemented now in master! Should be part of the next release.
Just released in borgmatic 1.7.3!