From f4a6ea370b39e6755e869f566f02f176c5074903 Mon Sep 17 00:00:00 2001 From: Thomas Waldmann Date: Sat, 11 Oct 2025 20:07:26 +0200 Subject: [PATCH] patterns: clarify scope of default pattern style, fixes #9004 --- src/borg/archiver.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/borg/archiver.py b/src/borg/archiver.py index 2114d33f9..c247bb778 100644 --- a/src/borg/archiver.py +++ b/src/borg/archiver.py @@ -2563,11 +2563,13 @@ class Archiver: (a plain path, not a file pattern). Use this prefix to have the root paths in the patterns file rather than as command line arguments. - Pattern style prefix ``P`` + Pattern style prefix ``P`` (only useful within patterns files) To change the default pattern style, use the ``P`` prefix, followed by the pattern style abbreviation (``fm``, ``pf``, ``pp``, ``re``, ``sh``). - All patterns following this line will use this style until another style - is specified. + All patterns following this line in the same patterns file will use this + style until another style is specified or the end of the file is reached. + When the current patterns file is finished, the default pattern style will + reset. Exclude pattern prefix ``-`` Use the prefix ``-``, followed by a pattern, to define an exclusion.