Creating the VMware virtual machine disk restore file
This topic describes how to use the NetBackup nbrestorevm command to create the text file that describes the virtual machine disk restore parameters. The file uses the JavaScript Object Notation (JSON) format to describe the restore parameters. Two methods exist to specify the backup that is used to create the restore parameters file, as follows:
Specify a backup image ID | See To create the VMware virtual machine disk restore file by specifying a backup ID . A separate procedure describes how to determine the backup ID. See Determining the backup image ID from which to restore a VMware virtual machine disk. |
Specify a date range | If you specify a date range, NetBackup uses the most recent backup in that date range. See To create the VMware virtual machine disk restore file by specifying a date range. |
This task is part of a larger process that describes how to restore an individual VMware virtual machine disk or disks.
See Restoring VMware virtual machine disks by using NetBackup commands.
To create the VMware virtual machine disk restore file by specifying a backup ID
- Create the file that describes the virtual machine disk or disks that you want to restore by specifying a backup ID, as follows:
On Windows: install_path\NetBackup\bin\nbrestorevm -vmw -C vm_client -S primary_server -backupid value -restorespecout filename
On UNIX: /usr/openv/netbackup/bin/brestorevm -vmw -C vm_client -S primary_server -backupid value -restorespecout filename
The -backupid value option and argument specifies the backup image from which to create the file.
The -restorespecout filename option and argument specifies the name of the file.
By default, nbrestorevm creates the file in the current working directory. To create the file in a different directory, specify a pathname for the filename.
- Continue to the next task in the individual virtual machine disk restore process.
To create the VMware virtual machine disk restore file by specifying a date range
- Create the file that describes the virtual machine disk or disks that you want to restore by specifying a date range, as follows:
On Windows: install_path\NetBackup\bin\nbrestorevm -vmw -C vm_client -S primary_server -s mm/dd/yyyy hh:mm:ss -e mm/dd/yyyy hh:mm:ss -restorespecout filename
On UNIX: /usr/openv/netbackup/bin/nbrestorevm -vmw -C vm_client -S primary_server -s mm/dd/yyyy hh:mm:ss -e mm/dd/yyyy hh:mm:ss -restorespecout filename
The hh:mm:ss for the start date and the end date are optional.
The -restorespecout filename option and argument specifies the name of the file.
By default, nbrestorevm creates the file in the current working directory. To create the file in a different directory, specify a pathname for the filename.
- Continue to the next task in the individual virtual machine disk restore process.