Pre- and post- exec commands on windows systems – HP B6960-90078 User Manual

Page 281

Advertising
background image

Backup

Pre- and Post-Exec Commands

Chapter 5

251

c. The

post-exec

(for each object in the backup specification) starts

and completes.

3. The

post-exec

command for the entire backup specification starts

and completes.

Figure 5-36

Pre- and Post-Exec Control Flow

Pre- and Post- Exec Commands on Windows Systems

This section describes how to implement

pre-

and

post-exec

commands

on Windows Cell Managers and clients.

How to Write the
Commands

Pre-

and

post-exec

commands can be written as executables or batch

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-exec

commands 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
the Commands

Pre-

and

post-exec

scripts executed on the Cell Manager are started

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

Advertising