Top
ETERNUS SF AdvancedCopy Manager V16.1 Operation Guide for Copy Control Module
FUJITSU Storage

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

If this option has been omitted, an execution log will be output to the command prompt.-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_ETERNUS_1\exe\VMRestore.ps1 -vm VM1 -l C:\Script_ETERNUS_1\log\backup.log

NOTES