extract.rst.inc 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. .. IMPORTANT: this file is auto-generated from borg's built-in help, do not edit!
  2. .. _borg_extract:
  3. borg extract
  4. ------------
  5. ::
  6. borg [common options] extract <options> ARCHIVE PATH
  7. positional arguments
  8. ARCHIVE
  9. archive to extract
  10. PATH
  11. paths to extract; patterns are supported
  12. optional arguments
  13. ``--list``
  14. | output verbose list of items (files, dirs, ...)
  15. ``-n``, ``--dry-run``
  16. | do not actually change any files
  17. ``-e PATTERN``, ``--exclude PATTERN``
  18. | exclude paths matching PATTERN
  19. ``--exclude-from EXCLUDEFILE``
  20. | read exclude patterns from EXCLUDEFILE, one per line
  21. ``--pattern PATTERN``
  22. | include/exclude paths matching PATTERN
  23. ``--patterns-from PATTERNFILE``
  24. | read include/exclude patterns from PATTERNFILE, one per line
  25. ``--numeric-owner``
  26. | only obey numeric user and group identifiers
  27. ``--strip-components NUMBER``
  28. | Remove the specified number of leading path elements. Pathnames with fewer elements will be silently skipped.
  29. ``--stdout``
  30. | write all extracted data to stdout
  31. ``--sparse``
  32. | create holes in output sparse file from all-zero chunks
  33. `Common options`_
  34. |
  35. Description
  36. ~~~~~~~~~~~
  37. This command extracts the contents of an archive. By default the entire
  38. archive is extracted but a subset of files and directories can be selected
  39. by passing a list of ``PATHs`` as arguments. The file selection can further
  40. be restricted by using the ``--exclude`` option.
  41. See the output of the "borg help patterns" command for more help on exclude patterns.
  42. By using ``--dry-run``, you can do all extraction steps except actually writing the
  43. output data: reading metadata and data chunks from the repo, checking the hash/hmac,
  44. decrypting, decompressing.
  45. ``--progress`` can be slower than no progress display, since it makes one additional
  46. pass over the archive metadata.