mirror of
https://github.com/borgbackup/borg.git
synced 2024-12-26 17:57:59 +00:00
f2a1539f25
have options to the left OR to the right of all positional arguments, but not on BOTH sides and not in between them.
21 lines
706 B
ReStructuredText
21 lines
706 B
ReStructuredText
.. 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
|
|
$ borg export-tar --tar-filter="gzip -9" testrepo::linux Monday.tar.gz
|
|
|
|
# export a tar, but instead of storing it on disk,
|
|
# upload it to a remote site using curl.
|
|
$ borg export-tar /path/to/repo::Monday - | curl --data-binary @- https://somewhere/to/POST
|
|
|
|
# remote extraction via "tarpipe"
|
|
$ borg export-tar /path/to/repo::Monday - | ssh somewhere "cd extracted; tar x"
|