tar.rst 739 B

1234567891011121314151617181920212223
  1. .. include:: import-tar.rst.inc
  2. .. include:: export-tar.rst.inc
  3. Examples
  4. ~~~~~~~~
  5. ::
  6. # export as uncompressed tar
  7. $ borg export-tar /path/to/repo::Monday Monday.tar
  8. # exclude some types, compress using gzip
  9. $ borg export-tar /path/to/repo::Monday Monday.tar.gz --exclude '*.so'
  10. # use higher compression level with gzip
  11. $ borg export-tar --tar-filter="gzip -9" testrepo::linux Monday.tar.gz
  12. # export a tar, but instead of storing it on disk,
  13. # upload it to a remote site using curl.
  14. $ borg export-tar /path/to/repo::Monday - | curl --data-binary @- https://somewhere/to/POST
  15. # remote extraction via "tarpipe"
  16. $ borg export-tar /path/to/repo::Monday - | ssh somewhere "cd extracted; tar x"