HP StorageWorks P9000 Replication Manager Software 7.1 CLI User Guide (TB584-96026, May 2011)

ExplanationScript text
[CMD]
CMDLINE=C:\tmp\tapebackup.bat
(3) Execute the next command without
waiting for the command to terminate.
TIMEOUT=NOWAIT ...(3)
(4) Treat a command return value that
is a value other than 0 as an error.
END_CODE=TERMINATE_NZ ...(4)
(5) Execute on the remote server. The
-s option is required for the backup
command.
LOCATION=REMOTE ...(5)
(6) Execute only when the backup com-
mand is normal.
PARENT_STAT=NORMAL ...(6)
The following is an example of backing up the secondary volume to tape using tapebackup.bat:
rem Use NTBACKUP to execute the job Job1, and perform a copy backup of G:\ and H:\ to tape Tape1
rem For the backup source specification, use the backup selection file (C:\tmp\exg.bks)
rem Set the backup comment passed to the DRMENV_COMMENT environment variable as the backup
job explanation
"C:\Windows\system32\ntbackup.exe" backup "@C:\tmp\exg.bks" /j "Job 1" /a /t "Tape 1"
/D "%DRMENV_COMMENT%" /m copy
IF NOT "%errorlevel%"=="0" GOTO ERROR
rem After the tape backup, specify the backup ID imported to the backup server, and unmount
the secondary volume
"C:\Program Files\CVXPAE\DRM\bin\drmumount.exe" %DRMENV_R_BACKUPID%
IF NOT "%errorlevel%"=="0" GOTO ERROR
exit 0
:ERROR
exit 1
Note: A line that begins with the characters rem is a comment line.
Backup execution example
An example of using a user script is shown below:
PROMPT>drmexgbackup -mode vss -script C:\tmp\script.txt -s BKHOST -auto_import -auto_mount G:
-comment TEST1
Restoring by using transaction logs (Roll-forward)
When backup data on Exchange Server is restored, the database returns to the state it was in at the
time of the backup. If the transaction logs from when the backup was executed up until when the
restoration command was executed are stored on the primary volume, the transaction logs can be
Operation for Exchange databases414