Pre/Post Execution

The Pre/Post Job Execution option allows you to run a command or script on the ARCserveIT host (where ARCserveIT is running) before and/or after the backup job is executed. You can run UNIX Commands, UNIX executable programs, and UNIX shell scripts. The available pre/post options are:

Option

Description

Run Command Before Job

Enter the command or the path and name of the script to be executed before the job starts.

On Exit Code

ARCserveIT will detect the exit code returned by any application. You can specify the following options for the set error code:

  • Run Job Immediately
  • Skip Job
  • Skip Post Application

    Note: An exit code of "1" corresponds to a failed execution, and will be the returned value if any of the exit codes related to a script return this value. The same holds true for an exit code of "0" which corresponds to a successful execution,

Delay in Minutes

Specify the delay (in minutes) in which ARCserveIT waits before running a job when the appropriate exit code is detected.

Run Command After Job

Enter the command or the path and name of the script to be executed after the job has completed.

Run Before/After Command As

The User Name and Password corresponds to the UNIX system of the host server selected, and is required in order to check the system privileges on that server. The user name and password entered into these fields should not be confused with ARCserveIT's User Name and Password.

To specify the command or script to run, enter the name of the command or script in the Run Command Before Job and/or Run Command After Job fields. If required, you can then set other operations to be performed based on the exit code returned.

Make sure that the path to the command you want to run is correct. For example, if you want to run the script post_exec.ksh. If the command: post_exec.ksh was in the usr directory, then you would have to enter: /usr/post_exec.ksh.