HP XP7 Replication Manager Application Agent CLI User Guide (TK981-96015, May 2014)

ExplanationScript text
#Tape backup of the secondary volume
[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
Operation for Exchange databases416