NAME
VMRestore.ps1 - Automated restore execution
SYNOPSIS
powershell scriptDir\exe\VMRestore.ps1 -vm vmName [-l logFileName] [-e]
(scriptDir is the folder to which the script has been unzipped)
DESCRIPTION
This script restores any backed up virtual machines. When a virtual machine to be restored on the transaction volume is deleted, transaction volume data is restored to the restore volume, the virtual machine is recovered, and snapshots are restored. When the virtual machine has been restored to the restore volume, it is moved to the transaction volume by way of Cold Migration.
Refer to "Execute the restore script" in "E.8 Virtual Machine Restoration" for the automated processes executed with this script.
OPTIONS
Specify the name of a virtual machine to be restored.
Specify the name of the script execution log output file with an absolute path. The log output destination directory must be created in advance.
This option can be specified concurrently with the -e option.
Refer to "E.10 Log Format and Messages" for information on the output log.
Output a log to Windows event log.
This option can be specified concurrently with the -l option.
EXIT STATUS
=0: Completed successfully
>0: Terminated abnormally
EXAMPLES
> powershell C:\Script_ETERNUS_1\exe\VMRestore.ps1 -vm VM1 -l C:\Script_ETERNUS_1\log\backup.log
NOTES
A warning about electronic authentication may appear when connecting to the vCenter Server because this script uses VMware vSphere PowerCLI. This warning appears when a default test certificate is used. It can be ignored.
Do not restore virtual machines for which the backup process (physical copy in the ETERNUS Disk storage system) has not been completed. Virtual machines restored before backup is complete do not operate normally.
This script may be restored when a virtual machine subject to restoration exists. If a virtual machine subject to restoration does not exist, make a new registration with the same virtual machine name as when the backup was performed.