Document the impact of the slashdot hack to pattern matching

... or rather that the slashdot hack doesn't impact pattern matching at all. Add a note to `borg help patterns`.

(cherry picked from commit ae1440ed7e)
This commit is contained in:
Daniel Rudolf 2026-05-15 14:47:44 +02:00
parent e2a651c684
commit ae7d286fdd
No known key found for this signature in database
GPG key ID: A061F02CD8DE4538

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/**``).