From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gate001.proxmox.com (gate001.proxmox.com [45.144.208.40]) by lore.proxmox.com (Postfix) with ESMTPS id E8E251FF0C2 for ; Thu, 03 Dec 2026 10:59:15 +0100 (CET) Received: from gate001.proxmox.com (localhost.localdomain [127.0.0.1]) by gate001.proxmox.com (Proxmox) with ESMTP id 7B292217E0; Thu, 03 Dec 2026 10:58:50 +0100 (CET) From: POYEN Alexis To: pve-devel@lists.proxmox.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 Message-ID: <20261203092717.1863218-2-alexis.poyen@groupe-cyllene.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20261203092717.1863218-1-alexis.poyen@groupe-cyllene.com> References: <20261203092717.1863218-1-alexis.poyen@groupe-cyllene.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SPAM-LEVEL: Spam detection results: 1 DMARC_PASS -0.1 DMARC pass policy KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment (newer systems) RDNS_NONE 1.274 Delivered to internal network by a host with no rDNS SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record X-MailFrom: alexis.poyen@groupe-cyllene.com X-Mailman-Rule-Hits: nonmember-moderation X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; emergency; member-moderation Message-ID-Hash: 5FBKSZGHIOUYULC4XMEMGN4PLPOAFJRQ X-Message-ID-Hash: 5FBKSZGHIOUYULC4XMEMGN4PLPOAFJRQ X-Mailman-Approved-At: Thu, 03 Dec 2026 10:58:46 +0100 CC: POYEN Alexis X-Mailman-Version: 3.3.10 Precedence: list List-Id: Proxmox VE development discussion List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: 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 --- 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