mirror of
https://github.com/restic/restic.git
synced 2025-12-11 18:47:50 +00:00
docs: clarify ** must me between path separators
This commit is contained in:
@@ -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``.
|
This means, ``/bin`` matches ``/bin/bash`` but does not match ``/usr/bin/restic``.
|
||||||
|
|
||||||
Regular wildcards cannot be used to match over the directory separator ``/``,
|
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,
|
e.g. ``b*ash`` matches ``/bin/bash`` but does not match ``/bin/ash``. To match
|
||||||
the special wildcard ``**`` can be used to match arbitrary sub-directories: The
|
across an arbitrary number of subdirectories, use the special ``**`` wildcard.
|
||||||
pattern ``foo/**/bar`` matches:
|
The ``**`` must be positioned between path separators. The pattern
|
||||||
|
``foo/**/bar`` matches:
|
||||||
|
|
||||||
* ``/dir1/foo/dir2/bar/file``
|
* ``/dir1/foo/dir2/bar/file``
|
||||||
* ``/foo/bar/file``
|
* ``/foo/bar/file``
|
||||||
|
|||||||
Reference in New Issue
Block a user