Merge pull request #9652 from PhrozenByte/docs-slashdot-and-pattern-master
Some checks failed
Lint / lint (push) Has been cancelled
CI / lint (push) Has been cancelled
CI / security (push) Has been cancelled
CodeQL / Analyze (push) Has been cancelled
CI / asan_ubsan (push) Has been cancelled
CI / native_tests (push) Has been cancelled
CI / vm_tests (Haiku, false, haiku, r1beta5) (push) Has been cancelled
CI / vm_tests (NetBSD, false, netbsd, 10.1) (push) Has been cancelled
CI / vm_tests (OmniOS, false, omnios, r151056) (push) Has been cancelled
CI / vm_tests (OpenBSD, false, openbsd, 7.8) (push) Has been cancelled
CI / vm_tests (borg-freebsd-14-x86_64-gh, FreeBSD, true, freebsd, 14.3) (push) Has been cancelled
CI / windows_tests (push) Has been cancelled

Document the impact of the slashdot hack to pattern matching (master)
This commit is contained in:
TW 2026-05-17 22:13:20 +02:00 committed by GitHub
commit adf7352695
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -37,6 +37,10 @@ class HelpMixIn:
start with ``src``.
- On native Windows, archived absolute paths look like ``C/Windows/System32``.
- When using the slashdot hack, patterns match against the unstripped path,
i.e., when you back up ``/this/gets/stripped/./this/gets/archived``,
patterns must match ``this/gets/stripped/this/gets/archived``.
Borg supports different pattern styles. To define a non-default
style for a specific pattern, prefix it with two characters followed
by a colon ':' (i.e. ``fm:path/*``, ``sh:path/**``).