Backup

Pre- and Post-Exec Commands

Pre- and Post-Exec Commands for a Specific Backup Object

Pre- and post-execcommands for an object are executed before and after the backup of the object, respectively. You can specify these commands for all objects in a backup specification, or for each individual object. When backing up integrations, for example Oracle, the database is considered as an object, so the commands are executed before and after the database backup. These commands are executed on the system where the Disk Agent is running.

Where to Locate Pre- and post-execscripts for a backup object are started under the

the Commands Data Protector Inet Service account (by default, Local System account) and can be located in any directory, except for host backup object. For host backups they must reside in the <Data_Protector_home>\bin directory on the system where the Disk Agent is running. For scripts located in the <Data_Protector_home>\bin directory you specify only the filename, otherwise a full path name of the script must be specified.

How to Specify the To apply pre- and post-execcommands to all objects in the backup

Filename or

specification, click the Options tab in the backup specification. Under

Pathname

Filesystem Options (Disk Image Options in a saved backup

 

specification for disk image backup), click Advanced.

 

To apply pre- and post-execcommands to individual objects only, click

 

the Backup Object Summary tab in the backup specification. Right-click

 

an object and click Properties. In the Object Properties dialog box,

 

click the Options tab.

 

To apply pre- and post-execcommands to an integration object, click

 

the Options tab in the backup specification. Under Application

 

Specific Options, click Advanced.

 

Write the filename or 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.

Environment Variables

BDACC

The Disk Agent sets its exit code (0 is successful) to the BDACC environment variable. This variable can be checked in the post- exec command, thus making the post-execcommand dependent upon successful termination of the Disk Agent.

Chapter 5

255

Page 285
Image 285
HP B6960-90078 manual Pre- and Post-Exec Commands for a Specific Backup Object, Environment Variables