arcserve-KB : How to run scripts or commands before and/or after the backup?
Last Update: 2015-12-15 22:17:57 UTC
CA ARCSERVE D2D: 15.0
Last Modified Date: 05/07/2010
Document ID: TEC520405
Title: How to run scripts or commands before and/or after the backup?
CA ARCserve D2D allows to execute a script or command before a backup starts and/or after it is completed. This document explains about the steps to configure Pre and Post Scripts or commands.
Steps to configure commands to be executed before the backup starts and/or after the backup completes
Login to CA ARCserve D2D. In CA ARCserve D2D Home Page, click on 'Backup Settings' located under Tasks.
In the Backup Settings dialog, go to 'Advanced Settings' Tab. The commands can be specified under the 'Actions' section of the Advanced Settings.
Under Actions specify the following parameters:-
Username and password: Specify the user account credentials which will be used to execute the command.
Run a command before backup is started: Select this option if the command needs to be executed before the backup job starts. You can also trigger the script command based upon specific exit codes and select the action to be taken (run job or fail job) when that exit code is returned.
A 'Run Job' action directs CA ARCserve D2D to continue to run the job if the specified exit code is returned.
A 'Fail Job' action directs CA ARCserve D2D to cancel the job if the specified exit code is returned.
Run a command after snapshot is taken: Select this option if the command needs to be executed after the snapshot image is captured.
Run a command after backup is over: Select this option if the command needs to be executed upon completion of the backup job.
After selecting the appropriate options, click on 'Save Settings'.
The pre-post scripts configured will be executed when the next backup job is run. The Job Monitor would show the pre-post scripts being executed when a backup job is running.
The below screenshot shows a Pre-Script being executed before a backup is started.
The below screenshot shows a Post-Script being executed after a snapshot image is captured.