Support for tar backup extraction #300

Closed
opened 2020-04-17 14:15:04 +00:00 by floriplum · 3 comments

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]

#### 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]
Owner

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!

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!
Author

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.

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.
Owner

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!

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!
Sign in to join this conversation.
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: borgmatic-collective/borgmatic#300
No description provided.