tar.rst 748 B

1234567891011121314151617181920212223
  1. .. include:: import-tar.rst.inc
  2. .. include:: export-tar.rst.inc
  3. Examples
  4. ~~~~~~~~
  5. ::
  6. # Export as an 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 a 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"