extract.rst.inc 2.6 KB

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