HP B6960-90078 User Manual
Page 282

Backup
Pre- and Post-Exec Commands
Chapter 5
252
the filename. For scripts that are not located in the
directory, you must specify a full path
name of the script.
How to Specify the
Filename or
Pathname
In the backup specification, click the
Options
tab. Under
Backup
Specification Options
, click
Advanced
. Write the filename or
pathname in the
Pre-exec
and/or
Post-exec
text box.
When entering a full pathname, if your directory names are longer than
8 characters, write the pathname either in quotes or in the short 8.3
MS-DOS compatible form.
IMPORTANT
If you use quotes ("") to specify a pathname, do not use the combination
of backslash and quotes (\"). If you need to use a trailing backslash at
the end of the pathname, use the double backslash (\\).
Environment
Variables
The following environment variables are set by Data Protector, and can
be used only in
pre-
and
post-exec
scripts for a backup specification on
the Cell Manager:
DATALIST
The name of a backup specification.
MODE
Backup operation type, such as full, incremental,
incremental1, incremental2.
OWNER
Owner of the session.
The contents of this variable are in the same format as
in the database (case-sensitive):
for UNIX
for Windows
PREVIEW
The value is 1 if a preview is running and 0 if a backup
is running. Use this variable to modify your commands
so that they are executed only during a backup and not
during a preview. By default, the
pre-
or
post-exec
commands are not executed for preview. You can
enable them by setting the global option
ExecScriptOnPreview
.