Adding a script that runs before or after backup jobs
You can run a script before running a backup job to perform a task such as closing a database. Similarly, you can run a script after a backup job is completed to perform a task such as running a virus scan.
Running a script requires certain user rights and credentials.
To add a script that runs before or after backup jobs
-
On the navigation bar, click Setup.
-
In the selection pane, click Backup Jobs.
-
In the results pane, select the backup job.
-
In the task pane, under Backup Job Tasks, click Properties.
-
Under Settings, click Commands.
-
Click Add.
-
Specify the following options:
Server
|
Select the server on which to run the script.
|
Event
|
Select when the script will run. Your choices are Pre-backup or Post-backup.
|
Script
|
Type the path to the script file that will run before or after this backup job. If necessary, you can browse to the file.
|
Cancel command if not completed within xx minutes
|
Select the number of minutes before the backup job is canceled if it is not completed.
|
Run asynchronously
|
Select this option to start a script and continue processing.
To run the pre-command script to completion before starting the backup, or to run the backup to completion before starting the post-command script, uncheck this option.
|
Adding a script that runs before or after backup jobs