From ae7d286fdd2ffad042f9a29bdc06eb040926b12d Mon Sep 17 00:00:00 2001 From: Daniel Rudolf Date: Fri, 15 May 2026 14:47:44 +0200 Subject: [PATCH] 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 ae1440ed7e8155a3c0807cdbdfd8f18378f40a98) --- src/borg/archiver/help_cmd.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/borg/archiver/help_cmd.py b/src/borg/archiver/help_cmd.py index d0a240b4b3..b9cb05ff5b 100644 --- a/src/borg/archiver/help_cmd.py +++ b/src/borg/archiver/help_cmd.py @@ -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/**``).