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. The nbrestorevm -R rename file for Hyper-V
Veritas NetBackup™ for Hyper-V Administrator's Guide

The nbrestorevm -R rename file for Hyper-V

The -R rename file is a text file that uses change directives to specify file paths for restore to a different location. The change directives specify the original paths of the VM's files (xml, bin, vsv, vhd) and the paths to the files when they are restored.

Note:

The -R option and rename file are not required when you restore the VM to its original location with all its original settings.

Note the following about restoring the VM to a different location:

  • You must use the -vmhvnew option on nbrestorevm (instead of the - vmhv option).

  • The -R option must specify the absolute path to the rename file.

  • Each change directive in the -R rename file must end with a carriage return.

  • The change directives can be in any order in the rename file.

  • The change directives take the following form:

    change /original_VM_file_path to /target_VM_file_path

    Use forward slashes (/) in the paths. See Table: Change directives for the -R rename file.

  • Unlike the Backup, Archive, and Restore interface, nbrestorevm does not validate its command options and rename file directives before the restore job begins. Make sure to include all required options and rename file change directives.

Table: Change directives for the -R rename file

-R rename file directives

Description and notes

change /original_VM_GUID.xml_path to /new_VM_GUID.xml_path

The path to the VM's original .xml file and to the restored .xml file.

change /original_VM_GUID.bin_path to /new_VM_GUID.bin_path

The path to the VM's original .bin file and to the restored .bin file.

change /original_VM_GUID.vsv_path to /new_VM_GUID.vsv_path

The path to the VM's original .vsv file and to the restored .vsv file.

change /original_VM.vhd_path to /new_VM.vhd_path

The path to the VM's original vhd file and to the restored vhd file.

Feedback

Was this page helpful?
Previous

Hyper-V examples of restore to alternate locations

Next

Notes on troubleshooting the nbrestorevm command for Hyper-V

Feedback

Was this page helpful?