summaryrefslogtreecommitdiffstats
path: root/docs/usage.rst
diff options
context:
space:
mode:
Diffstat (limited to 'docs/usage.rst')
-rw-r--r--docs/usage.rst18
1 files changed, 18 insertions, 0 deletions
diff --git a/docs/usage.rst b/docs/usage.rst
index d2b0904a6..33c145350 100644
--- a/docs/usage.rst
+++ b/docs/usage.rst
@@ -492,6 +492,24 @@ Examples
Comment: This is a better comment
...
+.. include:: usage/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 testrepo::linux --tar-filter="gzip -9" Monday.tar.gz
+
+ # export a gzipped tar, but instead of storing it on disk,
+ # upload it to a remote site using curl.
+ $ borg export-tar ... --tar-filter="gzip" - | curl --data-binary @- https://somewhere/to/POST
.. include:: usage/with-lock.rst.inc