Ransomware attackers specifically target and attempt to destroy backup systems to increase the probability of payment. Hardening your system is critical. Please ensure you have reviewed your platform security using the Security Hardening Checklist
Cohesity

COHESITY Documentation

Explore our documentation to get started, discover products & new features, access troubleshooting guides, register sources, platforms support.

Products
Data Security Alliance
Visit Cohesity.com
Demos
Support
Blogs
Developers
Partner Portals
Cohesity Community
© 2026 Cohesity, Inc. All Rights Reserved.
Terms of Use|
Privacy Policy|
Legal|
  1. Home
  2. Veritas NetBackup™ for Hyper-V Administrator's Guide
  3. Appendix C. NetBackup commands to back up and restore Hyper-V virtual machines
  4. Examples of nbrestorevm for restoring VMs to Hyper-V
  5. Hyper-V examples of restore to original location
Veritas NetBackup™ for Hyper-V Administrator's Guide

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.

A. Restore to the original location and overwrite the VM

nbrestorevm - vmhv - C VM_to_restore - O

The -O option overwrites the existing VM. This option is required if the VM already exists.

B. From a backup that was made with the WMI method, restore to the original location and change the virtual machine's display name

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.

C. Restore to the original location, overwrite the VM, and create a progress log

nbrestorevm - vmhv - C VM_to_restore - O -L progress_log_file

D. Restore to the original location, overwrite the VM, but do not restore the common files

nbrestorevm -vmncf - C VM_to_restore - O

E. Restore to the original location from a VM backup that a different master server made, and overwrite the VM

nbrestorevm - vmhv - C VM_to_restore - S master_server - O

The - S option identifies the server that made the backup.

Feedback

Was this page helpful?
Previous

Examples of nbrestorevm for restoring VMs to Hyper-V

Next

Hyper-V examples of restore to alternate locations

Feedback

Was this page helpful?