Support borg extract and mount for restoration use cases #123
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#123
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?
From a borgmatic user, reported via email:
Thanks for the feature idea. That sounds like a very reasonable feature for the use case you mention. I recently added support for "borg init" to borgmatic, so I could see doing something similar for borg extract and mount.
Also note that there is already an "extract" consistency check implemented in borgmatic, which basically does a test extraction of the most recent archive so as to validate your backups. Not as flexible as what you're talking about, but it might be a start.
Just needed to restore a backup, and found that borgmatic doesn't support this by now. Please add it soon, restore is actually really neeed :)
Extract has been released as part of borgmatic 1.2.16. Mount is still to-do, so I'll leave this ticket open.
Docs here: https://torsion.org/borgmatic/docs/how-to/restore-a-backup/
Enjoy!
Awesome !!!
Work great, one thing missing is the ability to list the files of an archive, which would be done in
borg list ${BORG_REPO}::${BORG_SET}
and could be implemented withborgmatic --list --archive ${BORG_SET}
. Right now it complains about it:Also, an equivalent of
borg info ${BORG_REPO}::${BORG_SET}
would be great, likeborgmatic --info --archive ${BORG_SET}
. That would complete a convenient restore functionality.I added #140 and #141 for the missing pieces.
Good ideas. Thanks for filing. I'll follow up on those tickets.
borgmatic mount
has finally been implemented! Released as part of version 1.4.15. There's also a matchingborgmatic umount
action. Documentation is here: https://torsion.org/borgmatic/docs/how-to/extract-a-backup/#mount-a-filesystem