Exclude entire VM? Or have to mark each disk?

luckman212

Well-Known Member
Jun 22, 2017
44
2
48
I know we can exclude an individual disk from getting backed up to PBS by unchecking the "Backup" checkbox in the Hardware tab...

What I was wondering is: is there a way to completely exclude ALL disks (aka entire VM) from being backed up? (even new disks which might be added later)

E.g. a way to set this flag at the VM level vs. setting on each disk one by one.
 
So... if I already have a backup job for "all" targets (eg below), I should delete that and create a new job only for the specific VMs that i want backed up? Because it doesn't allow me to de-select just a single VM...

IMG_6971.jpeg
 
You should be able to select the VMs to be backed up. Change the pull down for selection mode.

Screenshot 2025-02-16 154834.png
 
Follow-up to this:

I marked a throwaway VM's SCSI disk as "no backup":

1749403181438.png

But, vzdump still wants to back up its TPM and EFI storage disks:

1749403233103.png

Problem is, there is no "Edit" available on those disks (grayed out):

1749403202784.png

I tried manually editing the /etc/pve/nodes/pve02/qemu-server/301.conf file, adding backup=0 to the efidisk0 and tpmstate0 lines. This failed to have the desired effect, and in fact just caused those disks to disappear from the Hardware tab (I assume because the parser did not "like" seeing that option).

TL;DR is there any way to exclude the EFI and TPM helper disks from the backup?
 
if you want to backup all but a few VMs, change the mode to "exclude selected"?
 
Okay, thanks. That works! still, it would be cool if there was a flag we could set in the VM's conf file to mark it as excluded.