Before and After Jobs

UltraBac has the ability to launch scripts or batch files before a backup set runs and after the backup set completes. This can be used to create and run customized scripts to stop the services of a relational database before the backup begins, or run any other commands that can be issued in a scripted format.

Set Level

Before/After commands are inserted in the set after the set has been “enumerated” by the Backup Wizard, in the "Set Properties":

 

  1. Create or open a backup set.

  2. Click "Action"/"View Backup Set Properties."

  3. Select the Before/After Jobs tab.

  4. Browse to or enter in the path to the script(s) to be run during, before, or after the set is backed up.

  5. Click "OK" to save.

     

    ub_beforeafterjobs_setlevelproperties.jpg

    Fig. 1 - Before/After Jobs tab in the Set Properties.

 

NOTE:  Before/After Jobs are only executed when the set is run as part of a scheduled backup.

Group Level

  1. Open the properties of a scheduled backup.

  2. Select the Options tab.

  3. Check the box before the "Run Before job" or "Run After job" fields to enable the appropriate type of job.

  4. Browse to or enter in the path to the script(s) to be run during, before, or after the scheduled job in the appropriate field.

  5. Click "OK" to save.

     

    ub_beforeafterjobs_scheduledjobproperties.jpg

    Fig. 2 - Options tab in the properties of a scheduled backup.

 

NOTE:  For more information on creating or editing a scheduled backup, please visit the "Scheduled Backup Creation" section of the User Manual:

 

UltraBac User Manual:  Scheduled Backup Basics