Closed enkore closed 3 years ago
Note: should be done after 1.2, borg is expected to be more modular / untangled by then.
This is pretty simple actually, since the model used by the various tar's is fairly close to what Borg does. (Also, the stdlib tarfile module handles all the dirty work for us). See PR, not much code.
I am looking for a way to transfer an archive between borg repositories. My use case is syncing a local and remote repository.
By gluing together tar import + tar export I could transfer archives between repositories, and move toward my goal.
Oof, I actually thought this was merged back then and I was so confused why import-tar seemingly vanished from the CLI and the docs.
@enkore so what is happening with this, will it be merged/reimplemented? Is there any way to restore a backup from an exported tar with borg?
https://github.com/borgbackup/borg/issues/2233#issuecomment-283155479 about being "untangled":
So there has been a bit work in this direction, but not yet at the right place needed for import-tar (like having some in-memory object having all the metadata and data and giving that to "put that into this archive code").
The implementation is now merged to master branch and everybody interested is invited to help with some practical testing. I personally did not do much practical testing, but I implemented a little test coverage by automated tests, but not very much.
See borg help import-tar
and borg help export-tar
. Also see there about current limitations (== what is expected to not work).
Stuff to test:
Please open new issues if you find bugs or ask here if you have questions.
Split from #176