From b2df21bb028430d0a9d8a31ee0b4dcc093bcb885 Mon Sep 17 00:00:00 2001 From: Fabian Ebner Date: Mon, 28 Mar 2022 10:16:34 +0200 Subject: [PATCH] docs: client: file exclusion: add note about leading slash It's not documented yet and not intuitive: https://forum.proxmox.com/threads/98810 https://forum.proxmox.com/threads/107143 Signed-off-by: Fabian Ebner --- 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.