public inbox for pve-devel@lists.proxmox.com
 help / color / mirror / Atom feed
From: POYEN Alexis <alexis.poyen@groupe-cyllene.com>
To: pve-devel@lists.proxmox.com
Cc: POYEN Alexis <alexis.poyen@groupe-cyllene.com>
Subject: [RFC PATCH guest-common 1/1] close #4186: vzdump: add 'tags' option to select guests by tag
Date: Thu,  3 Dec 2026 10:27:07 +0100	[thread overview]
Message-ID: <20261203092717.1863218-2-alexis.poyen@groupe-cyllene.com> (raw)
In-Reply-To: <20261203092717.1863218-1-alexis.poyen@groupe-cyllene.com>

Add a new optional 'tags' parameter to the vzdump configuration schema.
It allows selecting all guest systems that have at least one of the
specified tags, complementing the existing 'vmid', 'all'/'exclude' and
'pool' selection modes.

The value is validated as a list of tags (pve-tag-list), consistent with
the 'tags' option of the guest configuration.

Signed-off-by: POYEN Alexis <alexis.poyen@groupe-cyllene.com>
---
 src/PVE/VZDump/Common.pm | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/src/PVE/VZDump/Common.pm b/src/PVE/VZDump/Common.pm
index 1f66b85..7dc32fc 100644
--- a/src/PVE/VZDump/Common.pm
+++ b/src/PVE/VZDump/Common.pm
@@ -360,6 +360,13 @@ my $confdesc = {
         description => 'Backup all known guest systems included in the specified pool.',
         optional => 1,
     },
+    tags => {
+        type => 'string',
+        format => 'pve-tag-list',
+        description =>
+            'Backup all known guest systems that have at least one of the specified tags.',
+        optional => 1,
+    },
     'notes-template' => {
         type => 'string',
         description => "Template string for generating notes for the backup(s). It can contain"
-- 
2.53.0




  reply	other threads:[~2026-12-03  9:59 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-03  9:27 [RFC PATCH guest-common/manager 0/4] vzdump: support tag based guest selection in backup jobs POYEN Alexis
2026-12-03  9:27 ` POYEN Alexis [this message]
2026-12-03  9:27 ` [RFC PATCH manager 1/3] close #4186: vzdump: select guests by tag POYEN Alexis
2026-12-03  9:27 ` [RFC PATCH manager 2/3] close #4186: api: backup: support tag based guest selection in jobs POYEN Alexis
2026-12-03  9:27 ` [RFC PATCH manager 3/3] close #4186: ui: backup: add tag based selection mode POYEN Alexis

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261203092717.1863218-2-alexis.poyen@groupe-cyllene.com \
    --to=alexis.poyen@groupe-cyllene.com \
    --cc=pve-devel@lists.proxmox.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal