Is there a way to limit or exclude partitions/volumes/folders/files while backing up a VM? If so, please elaborate.
Backup
checkbox in the advanced settings when editing the disk in the VM's Hardware
view in Proxmox VE.This is only true for owned mount point volumes of containers, because containers are backed-up and restored as a whole file-system at the moment. For a VM, only disks that are part of the backup will be removed during restore (based on the drive key, i.e. if the backup includesThe disk will not be included in the backup if Backup isn't ticked.
Be very careful when restoring that VM: if restoring to the same VMID, the restore will remove the VM, deleting the non-backed-up disk.
scsi1
, then the current scsi1
disk will be removed). Others are kept as unused disks.Then, only the backed up disks will be restored. That means that you may lose some hopefully unimportant data and also that you should add that disk to the VM configuration. Depending on the VM OS and configuration, it may not even boot (i.e. Linux with a drive mount on /etc/fstab set as auto). Practice with some test VMs.
Are you sure, you're not thinking of containers? There it is the case and they warning in the UI was improved 1 or 2 years ago, because it can be unexpected.Thanks! It's been ages since I last tried it, but it behaved like that in the past.
ed221350 ("vma restore: only delete disks contained in backup.")
: https://git.proxmox.com/?p=qemu-ser...d;hp=19168b91ae543aa6e4dede2f10b705ca0f07990fYes, you'll have to re-attach a passed-through disk manually after restore.@fiona / @VictorSTS
So, then a restore will only restore the disk which was backed up, leaving the pass-through disks for remapping?