extract.rst.inc 1.7 KB

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