From 81b8a5ade19ddc898bc67fe5cbe801d7554c1cc9 Mon Sep 17 00:00:00 2001 From: Jeff Turner Date: Wed, 26 Jul 2023 01:09:52 +1000 Subject: [PATCH] Also mention that the matching pattern can be absolute --- docs/usage/help.rst.inc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/usage/help.rst.inc b/docs/usage/help.rst.inc index eccccd98..b183cac2 100644 --- a/docs/usage/help.rst.inc +++ b/docs/usage/help.rst.inc @@ -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``