Backup execution example – HP XP Command View Advanced Edition Software User Manual
Page 265
Explanation
Script text
#Re-start the application programs that use
the file system
CMDLINE=C:\tmp\restart_app.bat
ENV=VAL=ApplicationName
TIMEOUT=60
END_CODE=100
LOCATION=LOCAL
The following is an example of backing up the secondary volume to tape by using
tapebackup.bat
:
rem Use NTBACKUP to execute the job Job1,and perform a copy backup of G:\ to tape Tape1
rem Set the backup comment passed to the DRMENV_COMMENT environment variable as
the backup job explanation
"C:\Windows\system32\ntbackup.exe" backup G:\ /j "Job1" /a /t "Tape1" /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. If you specified
LOCATION=REMOTE
in the user
script, you must specify the
-s
option on the command line.
PROMPT> drmfsbackup F: -mode cold -script C:\tmp\script.txt -s BKHOST -auto_import -auto_mount
G: -comment TEST1
The execution results are shown below:
Application Agent CLI User Guide
265