[pbs-devel] [PATCH proxmox-backup] docs: client: file exclusion: add note about leading slash

Fabian Ebner f.ebner at proxmox.com
Mon Mar 28 10:16:34 CEST 2022

It's not documented yet and not intuitive:

Signed-off-by: Fabian Ebner <f.ebner at proxmox.com>
 docs/backup-client.rst | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/docs/backup-client.rst b/docs/backup-client.rst
index 3af40b3a..b115b368 100644
--- a/docs/backup-client.rst
+++ b/docs/backup-client.rst
@@ -175,6 +175,9 @@ Lines ending in ``/`` match only on directories.
 The directory containing the ``.pxarexclude`` file is considered to be the root of
 the given patterns. It is only possible to match files in this directory and its subdirectories.
+.. Note:: Patterns without a leading ``/`` will also match in subdirectories,
+   while patterns with a leading ``/`` will only match in the current directory.
 ``\`` is used to escape special glob characters.
 ``?`` matches any single character.
 ``*`` matches any character, including an empty string.

More information about the pbs-devel mailing list