extract.rst.inc 1.6 KB

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