From ae1440ed7e8155a3c0807cdbdfd8f18378f40a98 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`. --- src/borg/archiver.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/borg/archiver.py b/src/borg/archiver.py index 44602bb760..f8e837c6cb 100644 --- a/src/borg/archiver.py +++ b/src/borg/archiver.py @@ -2445,6 +2445,10 @@ def do_break_lock(self, args, repository): - When you back up relative paths like ``../../src``, the archived paths start with ``src``. + - 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``. + A directory exclusion pattern can end either with or without a slash ('/'). If it ends with a slash, such as `some/path/`, the directory will be included but not its content. If it does not end with a slash, such as