File: tar.rst

package info (click to toggle)
borgbackup 1.4.3-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 15,732 kB
  • sloc: python: 26,637; pascal: 3,245; ansic: 2,597; sh: 151; makefile: 137; tcl: 94
file content (23 lines) | stat: -rw-r--r-- 748 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
.. 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"