From 521fbad701690fe2a5cde43eb2c6c959cd7d1090 Mon Sep 17 00:00:00 2001 From: rhhub <7444613+rhhub@users.noreply.github.com> Date: Wed, 28 May 2025 18:32:34 -0700 Subject: [PATCH] docs: clarify ** must me between path separators --- doc/040_backup.rst | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/doc/040_backup.rst b/doc/040_backup.rst index a30d80402..a2092e486 100644 --- a/doc/040_backup.rst +++ b/doc/040_backup.rst @@ -346,9 +346,10 @@ A trailing ``/`` is ignored, a leading ``/`` anchors the pattern at the root dir This means, ``/bin`` matches ``/bin/bash`` but does not match ``/usr/bin/restic``. Regular wildcards cannot be used to match over the directory separator ``/``, -e.g. ``b*ash`` matches ``/bin/bash`` but does not match ``/bin/ash``. For this, -the special wildcard ``**`` can be used to match arbitrary sub-directories: The -pattern ``foo/**/bar`` matches: +e.g. ``b*ash`` matches ``/bin/bash`` but does not match ``/bin/ash``. To match +across an arbitrary number of subdirectories, use the special ``**`` wildcard. +The ``**`` must be positioned between path separators. The pattern +``foo/**/bar`` matches: * ``/dir1/foo/dir2/bar/file`` * ``/foo/bar/file``