Backup

Pre- and Post-Exec Commands

c.The post-exec(for each object in the backup specification) starts and completes.

3.The post-execcommand for the entire backup specification starts and completes.

Figure 5-36 Pre- and Post-Exec Control FlowPre- and Post- Exec Commands on Windows Systems

This section describes how to implement pre- and post-execcommands on Windows Cell Managers and clients.

How to Write the Pre- and post-execcommands can be written as executables or batch

Commands files. All the commands that run within the batch file must return an exit code 0 to signify success or greater than 0 to signify a failure.

Carefully follow the implementation guidelines provided in this section.

Pre- and Post-Exec Commands for a Backup Specification

Pre- and post-execcommands for a backup session are started before and after the session. These commands are usually executed on the Cell Manager, but you can choose another system.

Where to Locate Pre- and post-execscripts executed on the Cell Manager are started

the Commands under the Data Protector Inet Service account (by default, Local System account). They can be located in any directory.

For scripts located in the <Data_Protector_home>\bin directory and executed on the Cell Manager, you can specify only the filename. For scripts located in the <Data_Protector_home>\bin directory and executed on the system other than Cell Manager, you must specify only

Chapter 5

251