export-tar.rst.inc 2.4 KB

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