Idea ID 2700406
I would really like to be able to select which media set to restore a VM backup from when running this from command line.
This would allow me to run a scripted VM restore from a replicated copy when the links between the sites won't support a restore via WAN.
When restoring via GUI I have the option to change the backup device so I know this is possible I just need the switch built into the omnir -veagent -virtual-environment vmware command
My backup used write-device SiteA_IDB_gw1 then the replication used write-device SiteB_IDB_gw2
I want to restore from the replicated copy only so in the GUI I change the SiteA_IDB_gw1 device to use SiteB_IDB_gw2. This means that the media set for the original backup are considered offline to the selected restore device and therefore the replication media set are used instead.
I want to be able to do the same thing when running via cli:
omnir -veagent -virtual-environment vmware ...... -changedev source-dev new-dev
omnir -veagent -virtual-environment vmware -barhost SiteB-BH.company.com -apphost SiteA-vc.company.com -instance /ha-datacenter -method vStorageImage -vm /ha-datacenter/vm/VMNAME -instanceUUID 52823846-1135-defc-4e59-0afe2b6f996e -new_name DR-VMNAME -newinstance /ha-datacenter -store MyDatastore -destination SiteB-VC.company.com -changedev SiteA_IDB_gw1 SiteB_IDB_gw2 -register -skip -no_monitor
Yes I know I can do this via restoredev file but I want to be able to target this for specific automated restore scripts not for everything.
Honestly I think this should be available for all integ restores. As there is no way to schedule regular restores in the DP GUI we have to script this but unless we have the option to change the restore device we are stuck with only being able to automate same site restores.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.