2
0

extract.rst.inc 2.5 KB

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