Also mention that the matching pattern can be absolute

This commit is contained in:
Jeff Turner 2023-07-26 01:09:52 +10:00
parent b44193d82b
commit 81b8a5ade1
1 changed files with 2 additions and 1 deletions

View File

@ -23,7 +23,8 @@ recursion root, but (since 1.2) with any leading / or ../ removed. If you give
``absolute/path``. If you wanted to exclude e.g.
``/absolute/path/logs/*.log``, the pattern ``logs/*.log`` would not match; you
must use ``absolute/path/logs/*.log`` or ``**/logs/*.log`` (using ``sh``
patterns).
patterns). Since the leading path separator is stripped in patterns,
``/absolute/path/logs/*.log`` will also match (and is clearest).
The recursion root is also named ``PATH`` in Borg commands like `borg create`
that do a file discovery, so do not confuse the root with the ``PATH``