2017-06-06 22:06:36 +00:00
|
|
|
.. include:: export-tar.rst.inc
|
|
|
|
|
|
|
|
Examples
|
|
|
|
~~~~~~~~
|
|
|
|
::
|
|
|
|
|
|
|
|
# export as uncompressed tar
|
|
|
|
$ borg export-tar /path/to/repo::Monday Monday.tar
|
|
|
|
|
|
|
|
# exclude some types, compress using gzip
|
|
|
|
$ borg export-tar /path/to/repo::Monday Monday.tar.gz --exclude '*.so'
|
|
|
|
|
|
|
|
# use higher compression level with gzip
|
2017-11-25 18:29:34 +00:00
|
|
|
$ borg export-tar --tar-filter="gzip -9" testrepo::linux Monday.tar.gz
|
2017-06-06 22:06:36 +00:00
|
|
|
|
2017-11-25 18:29:34 +00:00
|
|
|
# export a tar, but instead of storing it on disk,
|
2017-06-06 22:06:36 +00:00
|
|
|
# upload it to a remote site using curl.
|
2017-11-25 18:29:34 +00:00
|
|
|
$ borg export-tar /path/to/repo::Monday - | curl --data-binary @- https://somewhere/to/POST
|
2017-07-26 08:40:35 +00:00
|
|
|
|
|
|
|
# remote extraction via "tarpipe"
|
|
|
|
$ borg export-tar /path/to/repo::Monday - | ssh somewhere "cd extracted; tar x"
|