extract.rst.inc 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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] [-n]
  7. [-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. -n, --dry-run do not actually change any files
  28. -e PATTERN, --exclude PATTERN
  29. exclude paths matching PATTERN
  30. --exclude-from EXCLUDEFILE
  31. read exclude patterns from EXCLUDEFILE, one per line
  32. --numeric-owner only obey numeric user and group identifiers
  33. --strip-components NUMBER
  34. Remove the specified number of leading path elements.
  35. Pathnames with fewer elements will be silently
  36. skipped.
  37. --stdout write all extracted data to stdout
  38. --sparse create holes in output sparse file from all-zero
  39. chunks
  40. Description
  41. ~~~~~~~~~~~
  42. This command extracts the contents of an archive. By default the entire
  43. archive is extracted but a subset of files and directories can be selected
  44. by passing a list of ``PATHs`` as arguments. The file selection can further
  45. be restricted by using the ``--exclude`` option.
  46. See the output of the "borg help patterns" command for more help on exclude patterns.