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/manager 0/4] vzdump: support tag based guest selection in backup jobs
Date: Thu,  3 Dec 2026 10:27:06 +0100	[thread overview]
Message-ID: <20261203092717.1863218-1-alexis.poyen@groupe-cyllene.com> (raw)

This is an RFC for bug #4186 (tag based selection of guests in backup
jobs). I would like to get feedback on the approach before turning this
into a proper series.

Backup jobs currently select the guests to back up either by an explicit
list of VMIDs, by all guests (optionally with an exclude list), or by a
resource pool. This series adds a fourth selection mode: all guests that
carry at least one of a given set of tags.

Tags are already a first-class property of guests (resource tree "Tag
View", bulk actions, create wizards), but there is no way to drive a
backup job from them. Selecting by tag lets one back up a logical group
of guests (e.g. "prod", "db") without maintaining a pool or a VMID list
that drifts as guests are added or removed.

The new 'tags' option is mutually exclusive with the existing selection
modes ('vmid', 'all'/'exclude', 'pool'), consistent with how those
already exclude each other.

Design question
---------------

In the forum thread [1] Thomas Lamprecht suggested not to add yet
another selection mode, but to rework the whole selection in the spirit
of the bulk-action filters, implemented in the backend and re-usable for
other endpoints. I understand that is the longer-term direction, but it
is a much larger change.

This series takes the smaller step: a dedicated 'tags' option that
follows the existing selection modes. It is self-contained, easy to
review, and solves the reported use case. If the maintainers prefer to
wait for the filter-based rework, I am happy to drop it; if a dedicated
option is acceptable in the meantime, I will turn this into a proper
series.

[1] https://forum.proxmox.com/threads/suggestion-add-tags-based-selection-mode-in-backup-job.137038/

The change spans two repositories:
 - pve-guest-common: declares the 'tags' option in the vzdump schema
 - pve-manager: implements the selection, the API handling and the GUI

The pve-manager patches depend on the pve-guest-common patch.

POYEN Alexis (4):
  close #4186: vzdump: add 'tags' option to select guests by tag
  close #4186: vzdump: select guests by tag
  close #4186: api: backup: support tag based guest selection in jobs
  close #4186: ui: backup: add tag based selection mode

 PVE/API2/Backup.pm                 |  8 +++++
 PVE/VZDump.pm                      | 31 ++++++++++++++++-
 src/PVE/VZDump/Common.pm           |  7 +++++
 test/vzdump_guest_included_test.pl | 71 +++++++++++++++++++++++++++++++++++++-
 www/manager6/Utils.js              |  4 +++
 www/manager6/dc/Backup.js          | 21 +++++++++++
 6 files changed, 140 insertions(+), 2 deletions(-)

-- 
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 POYEN Alexis [this message]
2026-12-03  9:27 ` [RFC PATCH guest-common 1/1] close #4186: vzdump: add 'tags' option to select guests by tag POYEN Alexis
2026-12-03  9:27 ` [RFC PATCH manager 1/3] close #4186: vzdump: " 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-1-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