NAME
VMBackup.ps1 - Automated backup execution
SYNOPSIS
powershell scriptDir\exe\VMBackup.ps1 [-l logFileName] [-e]
(scriptDir is the folder to which the script has been unzipped)
DESCRIPTION
This script backs up the System Area of any virtual machine after acquiring virtual machine snapshots. When backup is complete, the acquired snapshots are deleted.
The transaction volume of the virtual machine is copied to the backup volume for each LU.
Refer to "Execute the backup script" in "E.7 Virtual Machine Backup" for the automated processes executed with this script.
OPTIONS
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.
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\VMBackup.ps1 -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 therefore 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.
Always execute this script after the applications on the target virtual machine are stopped (I/O is stopped).
This script acquires target virtual machine snapshots at backup. Acquiring "Snapshot the virtual machine's memory" and "Quiesce guest file system", which are options for acquisition, are disabled (OFF).