mirror of
https://github.com/borgbackup/borg.git
synced 2026-02-19 02:29:19 -05:00
Merge pull request #8590 from Atemu/document-extract-wildcard
Some checks are pending
Lint / lint (push) Waiting to run
CI / lint (push) Waiting to run
CI / security (push) Waiting to run
CI / linux (ubuntu-22.04, 3.10, mypy) (push) Blocked by required conditions
CI / linux (ubuntu-22.04, 3.10, py310-fuse2) (push) Blocked by required conditions
CI / linux (ubuntu-22.04, 3.11, docs) (push) Blocked by required conditions
CI / linux (ubuntu-22.04, 3.11, py311-fuse3) (push) Blocked by required conditions
CI / linux (ubuntu-24.04, 3.12, py312-fuse3) (push) Blocked by required conditions
CI / linux (ubuntu-24.04, 3.13, py313-fuse3) (push) Blocked by required conditions
CI / linux (ubuntu-24.04, 3.14, py314-fuse3) (push) Blocked by required conditions
CI / macOS (macos-14, 3.11, py311-none) (push) Blocked by required conditions
CI / windows (push) Blocked by required conditions
CodeQL / Analyze (push) Waiting to run
Some checks are pending
Lint / lint (push) Waiting to run
CI / lint (push) Waiting to run
CI / security (push) Waiting to run
CI / linux (ubuntu-22.04, 3.10, mypy) (push) Blocked by required conditions
CI / linux (ubuntu-22.04, 3.10, py310-fuse2) (push) Blocked by required conditions
CI / linux (ubuntu-22.04, 3.11, docs) (push) Blocked by required conditions
CI / linux (ubuntu-22.04, 3.11, py311-fuse3) (push) Blocked by required conditions
CI / linux (ubuntu-24.04, 3.12, py312-fuse3) (push) Blocked by required conditions
CI / linux (ubuntu-24.04, 3.13, py313-fuse3) (push) Blocked by required conditions
CI / linux (ubuntu-24.04, 3.14, py314-fuse3) (push) Blocked by required conditions
CI / macOS (macos-14, 3.11, py311-none) (push) Blocked by required conditions
CI / windows (push) Blocked by required conditions
CodeQL / Analyze (push) Waiting to run
extract: document how to use wildcards in PATHs, fixes #8589
This commit is contained in:
commit
0e45c9dc06
2 changed files with 11 additions and 4 deletions
|
|
@ -19,6 +19,9 @@ Examples
|
|||
# Extract the "src" directory but exclude object files
|
||||
$ borg extract my-files home/USERNAME/src --exclude '*.o'
|
||||
|
||||
# Extract only the C files
|
||||
$ borg extract my-files 'sh:home/USERNAME/src/*.c'
|
||||
|
||||
# Restore a raw device (must not be active/in use/mounted at that time)
|
||||
$ borg extract --stdout my-sdx | dd of=/dev/sdx bs=10M
|
||||
|
||||
|
|
|
|||
|
|
@ -127,11 +127,15 @@ class ExtractMixIn:
|
|||
|
||||
extract_epilog = process_epilog(
|
||||
"""
|
||||
This command extracts the contents of an archive. By default, the entire
|
||||
archive is extracted, but a subset of files and directories can be selected
|
||||
by passing a list of ``PATH`` arguments. The file selection can be further
|
||||
restricted by using the ``--exclude`` option.
|
||||
This command extracts the contents of an archive.
|
||||
|
||||
By default, the entire archive is extracted, but a subset of files and directories
|
||||
can be selected by passing a list of ``PATH`` arguments. The default interpretation
|
||||
for the paths to extract is `pp:` which is a literal path-prefix match. If you want
|
||||
to use e.g. a wildcard, you must select a different pattern style such as `sh:` or
|
||||
`fm:`. See :ref:`borg_patterns` for more information.
|
||||
|
||||
The file selection can be further restricted by using the ``--exclude`` option.
|
||||
For more help on include/exclude patterns, see the :ref:`borg_patterns` command output.
|
||||
|
||||
By using ``--dry-run``, you can do all extraction steps except actually writing the
|
||||
|
|
|
|||
Loading…
Reference in a new issue