borgbackup/docs/usage/tar.rst

24 lines
748 B
ReStructuredText
Raw Normal View History

2022-01-23 11:16:20 -05:00
.. include:: import-tar.rst.inc
2017-06-06 18:06:36 -04:00
.. include:: export-tar.rst.inc
Examples
~~~~~~~~
::
2025-08-11 09:26:24 -04:00
# Export as an uncompressed tar.
2017-06-06 18:06:36 -04:00
$ borg export-tar /path/to/repo::Monday Monday.tar
2025-08-11 09:26:24 -04:00
# Exclude some types; compress using gzip.
2017-06-06 18:06:36 -04:00
$ borg export-tar /path/to/repo::Monday Monday.tar.gz --exclude '*.so'
2025-08-11 09:26:24 -04:00
# Use a higher compression level with gzip.
$ borg export-tar --tar-filter="gzip -9" testrepo::linux Monday.tar.gz
2017-06-06 18:06:36 -04:00
2025-08-11 09:26:24 -04:00
# Export a tar, but instead of storing it on disk,
2017-06-06 18:06:36 -04:00
# upload it to a remote site using curl.
$ borg export-tar /path/to/repo::Monday - | curl --data-binary @- https://somewhere/to/POST
2017-07-26 04:40:35 -04:00
2025-08-11 09:26:24 -04:00
# Remote extraction via "tarpipe".
2017-07-26 04:40:35 -04:00
$ borg export-tar /path/to/repo::Monday - | ssh somewhere "cd extracted; tar x"