How to restore multiple VMs at once?

sirlaser

New Member
Jun 21, 2012
4
0
1
Is there a way to restore multiple KVM VMs from backup at once, possible though a script?

My current understanding (from this page: https://pve.proxmox.com/wiki/Backup_and_Restore) for restores is you must create a placeholder (empty) VM with the same VMID as the backup, then restore to that with the backup. Do this for each VM you wish to restore.

Any help is appreciated. Thank you.
 
Hi,
take a look at
Code:
man qmrestore

The restore method described in the Wiki is meant for the GUI, you should be able to create a script with this command.
Simply loop all backup files and use a unique new VMID on every loop iteration.
 
I think it's not to hard to implement a simple "hold shift to select multiple items".
It looks like the developers don't have any interest in implementing multiple selection anyway.
 
Last edited:

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!