tar.rst 706 B

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