mirror of
https://github.com/borgbackup/borg.git
synced 2026-03-22 18:34:03 -04:00
23 lines
748 B
ReStructuredText
23 lines
748 B
ReStructuredText
.. include:: import-tar.rst.inc
|
|
|
|
.. include:: export-tar.rst.inc
|
|
|
|
Examples
|
|
~~~~~~~~
|
|
::
|
|
|
|
# Export as an 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 a 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"
|