Hyper-V examples of restore to original location
For restore to the original location, NetBackup 8.0 adds a new feature for VMs that were backed up with the WMI method: You can specify a new display name for the restored a VM.
nbrestorevm - vmhv - C VM_to_restore - O
The -O option overwrites the existing VM. This option is required if the VM already exists.
nbrestorevm.exe -vmhv -C vm1.acme.com -O -R \C:\vmadmin\renamefile2
The file renamefile2 specifies the new display name. The following example rename file changes the display name to vm6:
change /F/VMs/vm1/2D7C007E-90FB-44EC-ABB2-6733D42A51F5.VMRS to /F/VMs/vm1/2D7C007E-90FB-44EC-ABB2-6733D42A51F5.VMRS change /F/VMs/vm1/2D7C007E-90FB-44EC-ABB2-6733D42A51F5.vmcx to /F/VMs/vm1/2D7C007E-90FB-44EC-ABB2-6733D42A51F5.vmcx change /F/VMs/vm1/Virtual Hard Disks/vm1.vhdx to /F/VMs/vm1/Virtual Hard Disks/vm1.vhdx change vmname to vm6
Note: The paths in the rename file should be identical for both change and to. Only the last directive (change vmname to vm6) specifies the new display name, where vmname is a required literal entry, and to specifies the new name.
nbrestorevm - vmhv - C VM_to_restore - O -L progress_log_file
nbrestorevm -vmncf - C VM_to_restore - O
nbrestorevm - vmhv - C VM_to_restore - S primary_server - O
The - S option identifies the server that made the backup.