KB labels


Ticket Product Version

Ticket Category

Ticket Assignee


Hot Fixes

Published Fixes
Your Arcserve Support User Profile
First Name:
Last Name:
email:
Phone:
Company:*
Customer Type:
Language:

Country:
Region:

Time zone:
Follow

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
Tech Document
Title:  How to run scripts or commands before and/or after the backup?

Description:

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.

Solution:

Steps to configure commands to be executed before the backup starts and/or after the backup completes

  1. Login to CA ARCserve D2D. In CA ARCserve D2D Home Page, click on 'Backup Settings' located under Tasks.

    Figure 1
  2. In the Backup Settings dialog, go to 'Advanced Settings' Tab. The commands can be specified under the 'Actions' section of the Advanced Settings.

    Figure 2
  3. Under Actions specify the following parameters:-

    1. Username and password: Specify the user account credentials which will be used to execute the command.
    2. 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.
    3. Run a command after snapshot is taken: Select this option if the command needs to be executed after the snapshot image is captured.
    4. Run a command after backup is over: Select this option if the command needs to be executed upon completion of the backup job.
  4. After selecting the appropriate options, click on 'Save Settings'.

    Figure 3
  5. 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.

    Figure 4

    The below screenshot shows a Post-Script being executed after a snapshot image is captured.


    Figure 5

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

Comments