extract.rst.inc 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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 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. ``-p``, ``--progress``
  14. | show progress while extracting (may be slower)
  15. ``--list``
  16. | output verbose list of items (files, dirs, ...)
  17. ``-n``, ``--dry-run``
  18. | do not actually change any files
  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. ``--numeric-owner``
  28. | only obey numeric user and group identifiers
  29. ``--strip-components NUMBER``
  30. | Remove the specified number of leading path elements. Pathnames with fewer elements will be silently skipped.
  31. ``--stdout``
  32. | write all extracted data to stdout
  33. ``--sparse``
  34. | create holes in output sparse file from all-zero chunks
  35. `Common options`_
  36. |
  37. Description
  38. ~~~~~~~~~~~
  39. This command extracts the contents of an archive. By default the entire
  40. archive is extracted but a subset of files and directories can be selected
  41. by passing a list of ``PATHs`` as arguments. The file selection can further
  42. be restricted by using the ``--exclude`` option.
  43. See the output of the "borg help patterns" command for more help on exclude patterns.
  44. By using ``--dry-run``, you can do all extraction steps except actually writing the
  45. output data: reading metadata and data chunks from the repo, checking the hash/hmac,
  46. decrypting, decompressing.