Restore to multiple disks

gdi2k

Active Member
Aug 13, 2016
83
1
28
We're using backup / restore scripts to move our VMs to a hot spare Proxmox box each day in case our main cluster goes down - in that case, we would simply start the restored VMs on the backup server and carry on.

Here's a typical restore script we use:
Code:
/sbin/lvremove -f /dev/pve/vm-151-disk-1 # Remove the existing disk
/usr/sbin/qmrestore /mnt/sdc-6tb/backups/vzdump-qemu-141-*.vma.lzo 141 -force 1 -storage local-lvm # Replace with new image
/usr/sbin/qm set 141 -onboot 0 # make sure it doesn't autoboot on server startup

We know have a requirement to backup a VM with two attached disks, where we need to restore each one to two different storage targets. Is this possible with qmrestore?
 
We know have a requirement to backup a VM with two attached disks, where we need to restore each one to two different storage targets. Is this possible with qmrestore?
if you omit the storage flag, the individual disks will be restored to the storages in the config they had (they must have the same name)
 
That's a good tip thank you, I wasn't aware of that.

Unfortunately the naming is not the same (the cluster uses ceph), so that won't work in this situation. I guess it's not possible to specify it using qmrestore in some way?
 
no, explicitely naming multiple storages is not implemented
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!