cancel
Showing results for 
Search instead for 
Did you mean: 

Restore multiple VM's to an alternate location

Lumpi
Level 4

Hello

I need to restore arround 40 VMs to an alternate location to do some testing. At the moment I am clicking through the restore windows which is a little bit borring for many VMs. Also in case of a disaster I don't want to do this one by one. 

Is there an easier way to do that? In the webui I can select multiple VMs but I can only select "Add protection" or "Roll back instantly". 

thanks

1 REPLY 1

bhdrkzltn
Level 4

Hi,

You can use recovery APIs for VMware. Here's the sample payload letting you automatically pick the latest backup for a VM (VM1 - based on display name) from the catalogue and restore to an alternate location.

{
"data": {
"type": "recoveryRequest",
"attributes": {
"recoveryPoint": {
"client": "VM1"
},
"recoveryObject": {
"vmDisplayName": "VM1-restore",
"vmEnvironment": {
"vmxDatastore": "DS-ESX1", "esxiServer": "10.4.3.181", "vmFolder": "/HDS-DEMO/vm/Veritas/Bahadir" }
},
"recoveryOptions": {
"overwriteExistingVm": true, "retainHardwareVersion": true, "retainInstanceUuid": true, "retainBiosUuid": true }
}
}
}