extract.rst.inc 2.6 KB

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