Backup

Pre- and Post-Exec Commands

the filename. For scripts that are not located in the

<Data_Protector_home>\bin directory, you must specify a full path name of the script.

How to Specify the In the backup specification, click the Options tab. Under Backup

Filename or

Specification Options, click Advanced. Write the filename or

Pathname

pathname in the Pre-execand/or Post-exectext 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 The following environment variables are set by Data Protector, and can

Variables be used only in pre- and post-execscripts 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):

 

<user>.<group>@<hostname> for UNIX

 

<DOMAIN>\<user>@<hostname> 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.

252

Chapter 5

Page 282
Image 282
HP B6960-90078 manual Filename or, Pathname, 252