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