extract.rst.inc 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  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. usage: borg extract [-h] [--critical] [--error] [--warning] [--info] [--debug]
  7. [--lock-wait N] [--show-rc] [--no-files-cache] [--umask M]
  8. [--remote-path PATH] [--list] [-n] [-e PATTERN]
  9. [--exclude-from EXCLUDEFILE] [--numeric-owner]
  10. [--strip-components NUMBER] [--stdout] [--sparse]
  11. ARCHIVE [PATH [PATH ...]]
  12. Extract archive contents
  13. positional arguments:
  14. ARCHIVE archive to extract
  15. PATH paths to extract; patterns are supported
  16. optional arguments:
  17. -h, --help show this help message and exit
  18. --critical work on log level CRITICAL
  19. --error work on log level ERROR
  20. --warning work on log level WARNING (default)
  21. --info, -v, --verbose
  22. work on log level INFO
  23. --debug work on log level DEBUG
  24. --lock-wait N wait for the lock, but max. N seconds (default: 1).
  25. --show-rc show/log the return code (rc)
  26. --no-files-cache do not load/update the file metadata cache used to
  27. detect unchanged files
  28. --umask M set umask to M (local and remote, default: 0077)
  29. --remote-path PATH use PATH as borg executable on the remote (default:
  30. "borg")
  31. --list output verbose list of items (files, dirs, ...).
  32. Requires -v/--verbose.
  33. -n, --dry-run do not actually change any files
  34. -e PATTERN, --exclude PATTERN
  35. exclude paths matching PATTERN
  36. --exclude-from EXCLUDEFILE
  37. read exclude patterns from EXCLUDEFILE, one per line
  38. --numeric-owner only obey numeric user and group identifiers
  39. --strip-components NUMBER
  40. Remove the specified number of leading path elements.
  41. Pathnames with fewer elements will be silently
  42. skipped.
  43. --stdout write all extracted data to stdout
  44. --sparse create holes in output sparse file from all-zero
  45. chunks
  46. Description
  47. ~~~~~~~~~~~
  48. This command extracts the contents of an archive. By default the entire
  49. archive is extracted but a subset of files and directories can be selected
  50. by passing a list of ``PATHs`` as arguments. The file selection can further
  51. be restricted by using the ``--exclude`` option.
  52. See the output of the "borg help patterns" command for more help on exclude patterns.