]> git.proxmox.com Git - proxmox-backup.git/commitdiff
docs: document new include/exclude paramenter
authorPhilipp Hufnagl <p.hufnagl@proxmox.com>
Tue, 2 Jan 2024 11:06:54 +0000 (12:06 +0100)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Wed, 10 Jan 2024 09:13:45 +0000 (10:13 +0100)
Adding the newly introduced optional include/exclude parameter to the
PBS documentation.

Signed-off-by: Philipp Hufnagl <p.hufnagl@proxmox.com>
docs/managing-remotes.rst

index f8dcff6dcf77e8e8d53eb3402ad76eb76d99bee3..10ca1084cd4dd04c9875fc5ac075e59167565c9e 100644 (file)
@@ -116,6 +116,19 @@ of the specified criteria are synced. The available criteria are:
 The same filter is applied to local groups, for handling of the
 ``remove-vanished`` option.
 
+A ``group-filter`` can be inverted by adding ``exclude:`` to its beginning.
+
+* Regular expression example, excluding the match:
+    .. code-block:: console
+
+     # proxmox-backup-manager sync-job update ID --group-filter exclude:regex:'^vm/1\d{2,3}$'
+
+For mixing include and exclude filter, following rules apply:
+
+ - no filters: all backup groups
+ - include: only those matching the include filters
+ - exclude: all but those matching the exclude filters
+ - both: those matching the include filters, but without those matching the exclude filters
 .. note:: The ``protected`` flag of remote backup snapshots will not be synced.
 
 Namespace Support