export-tar.rst.inc 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. .. IMPORTANT: this file is auto-generated from borg's built-in help, do not edit!
  2. .. _borg_export-tar:
  3. borg export-tar
  4. ---------------
  5. .. code-block:: none
  6. borg [common options] export-tar [options] ARCHIVE FILE PATH
  7. ARCHIVE
  8. archive to export
  9. FILE
  10. output tar file. "-" to write to stdout instead.
  11. PATH
  12. paths to extract; patterns are supported
  13. optional arguments
  14. --tar-filter filter program to pipe data through
  15. --list output verbose list of items (files, dirs, ...)
  16. -e PATTERN, --exclude PATTERN exclude paths matching PATTERN
  17. --exclude-from EXCLUDEFILE read exclude patterns from EXCLUDEFILE, one per line
  18. --pattern PATTERN experimental: include/exclude paths matching PATTERN
  19. --patterns-from PATTERNFILE experimental: read include/exclude patterns from PATTERNFILE, one per line
  20. --strip-components NUMBER Remove the specified number of leading path elements. Pathnames with fewer elements will be silently skipped.
  21. .. class:: borg-common-opt-ref
  22. :ref:`common_options`
  23. Description
  24. ~~~~~~~~~~~
  25. This command creates a tarball from an archive.
  26. When giving '-' as the output FILE, Borg will write a tar stream to standard output.
  27. By default (``--tar-filter=auto``) Borg will detect whether the FILE should be compressed
  28. based on its file extension and pipe the tarball through an appropriate filter
  29. before writing it to FILE:
  30. - .tar.gz: gzip
  31. - .tar.bz2: bzip2
  32. - .tar.xz: xz
  33. Alternatively a ``--tar-filter`` program may be explicitly specified. It should
  34. read the uncompressed tar stream from stdin and write a compressed/filtered
  35. tar stream to stdout.
  36. The generated tarball uses the GNU tar format.
  37. export-tar is a lossy conversion:
  38. BSD flags, ACLs, extended attributes (xattrs), atime and ctime are not exported.
  39. Timestamp resolution is limited to whole seconds, not the nanosecond resolution
  40. otherwise supported by Borg.
  41. A ``--sparse`` option (as found in borg extract) is not supported.
  42. By default the entire archive is extracted but a subset of files and directories
  43. can be selected by passing a list of ``PATHs`` as arguments.
  44. The file selection can further be restricted by using the ``--exclude`` option.
  45. See the output of the "borg help patterns" command for more help on exclude patterns.
  46. ``--progress`` can be slower than no progress display, since it makes one additional
  47. pass over the archive metadata.