Top
ETERNUS SF Express V15.3/ AdvancedCopy Manager V15.3 Operation Guide for Copy Control Module
ETERNUS

E.8.3 VMRestore.ps1 (Restore Script)

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.7 Virtual Machine Restoration" for the automated processes executed with this script.


OPTIONS

-vm vmName

Specify the name of a virtual machine to be restored.

-l logFileName

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.9 Log Format and Messages" for information on the output log.

-e

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\exe\VMRestore.ps1 -vm VM1 -l C:\Script\log\backup.log

NOTES