backup_exit_notify script
The backup_exit_notify.cmd script (on Windows) and the backup_exit_notify script (on UNIX) run on the master server. It's called to perform site-specific processing when an individual backup completes.
The scripts are located in the following directories:
On Windows: Install_path\NetBackup\bin\backup_exit_notify.cmd
On UNIX: /usr/openv/netbackup/bin/backup_exit_notify
NetBackup passes the following parameters to the script:
clientname | Specifies the name of the client from the NetBackup catalog. |
policyname | Specifies the policy name from the NetBackup catalog. |
schedname | Specifies the schedule name from the NetBackup catalog. |
schedtype | Specifies one of the following: FULL, INCR (differential incremental), CINC (cumulative incremental), UBAK, UARC |
exitstatus | Specifies the exit code for the entire backup job. |
stream | Specifies the backup stream number for a job. 0 = The backup job is not running multiple data streams. -1 = The job is a parent job. |
done_trying | Specifies whether the job will retry. 0 = The job is not complete and will retry. 1= The job is complete and will not retry. If the system is configured to make 3 attempts in 12 hours, the job could run this script up to 3 times. On the final attempt, the done_trying flag is set to 1. The job has either completed successfully or has failed and exhausted the number of tries. |
See the following UNIX example:
backup_exit_notify clientname1 pol_prod sched_fulls FULL 0 -1 1
backup_exit_notify clientname2 pol_prod sched_incr INCR 73 0 1