Support for tar backup extraction
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).
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!
export-tar action supports exporting to file or to stdout.
Thanks for the feature idea!
Deleting a branch is permanent. It CANNOT be undone. Continue?