Support for tar backup extraction #300
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#300
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?
What I'm trying to do and why
Export my Backup to a program behind a pipe or restore it to a tar file
Other notes / implementation ideas
I basically would like to do what export-tar does(https://borgbackup.readthedocs.io/en/stable/usage/tar.html).
Environment
borgmatic version: [1.5.1]
borgmatic installation method: [pip]
Borg version: [1.1.9]
Python version: [3.7.3]
operating system and version: [Debian 10]
Nice idea. Would you use a borgmatic export tar feature to write to stdout, or would you want to write directly to file? I'm just trying to think through how a stdout tar export would interact with logging.
Also, out of curiosity, what's your use case for exporting an archive in tar format? As opposed to, say, extracting or mounting? Thanks!
If i could export the tar stream i could just put the stream in a file so i would prefere the stream option.
I came to the idea after the need to transfer a few files from my backup to a windows computer via nc. Since it was a computer i had no real access to.
So i copied the files from the mounted backup, used tar to send the stream over netcat and received and untared it on the other side.
So maybe kind of an edge case, but i still think it would be cool if this could be implemented.
Just implemented this with a new
borgmatic extract-tar
command. Run with--help
after upgrading to borgmatic 1.5.9 for info on usage. Please let me know whether it works for your use case!The new
export-tar
action supports exporting to file or to stdout.Thanks for the feature idea!