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

  1. On the navigation bar, click Setup.

  2. In the selection pane, click Backup Jobs.

  3. In the results pane, select the backup job.

  4. In the task pane, under Backup Job Tasks, click Properties.

  5. Under Settings, click Commands.

  6. Click Add.

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

More Information

Understanding the Continuous Protection Server service account

Adding a script that runs before or after backup jobs