Default Pre/Post Commands options
You can set defaults for the commands you want to run before or after all backup and restore jobs. If the default options are not appropriate for a particular job, you can override the default options when you create the job.
See Setting default pre/post commands.
Table: Default Pre/Post Commands options
Item
|
Description
|
Allow pre- and post-commands to be successful only if completed with a return code of zero |
Allows Backup Exec to check the return codes of the pre- and post-commands to determine if they completed successfully.
An exit code of zero returned to the operating system by the pre- or post-command is interpreted by Backup Exec to mean the job completed successfully. A non-zero exit code is interpreted by Backup Exec to mean the job ended with an error.
After checking the return codes, Backup Exec continues processing according to selections you made for running the pre- and post-commands.
If this option is not selected, the success of the pre- and post-commands is not determined based on the return code.
|
Run job only if pre-command is successful |
Runs the backup or restore job only if the pre-command is successful. If the pre-command fails, the job does not run, and is marked as failed.
If it is critical that the job not run if the pre-command fails, then select Allow pre- and post-commands to be successful only if completed with a return code of zero. If a non-zero code is returned, it is interpreted by Backup Exec to mean that the pre-command did not run successfully. The job is not run and the job status is marked as Failed.
|
Run post-command only if pre-command is successful |
Runs the post-command only if the pre-command is successful.
If it is critical that the post-command fail if the pre-command fails, then select Allow pre- and post job commands to be successful only if completed with a return code of zero. If a non-zero code is returned for the pre-command, it is interpreted by Backup Exec to mean that the pre-command did not run successfully. The post-command is not run.
If you also select Run job only if pre-command is successful, and both the pre-command and the job are successful, but the post-command returns a non-zero code, the job log reports both the job and the post-command as failed.
|
Run post-command even if job fails |
Runs the post-command whether the job is successful or not.
If you also select Allow pre- and post job commands to be successful only if completed with a return code of zero and the post-command returns a non-zero code, the job log reports the post-command as failed.
|
Run post-command after job verification completes |
Runs the post-command after the verification completes if you selected the Verify after backup completes option on the General backup properties dialog box.
|
Cancel command if not completed within x minutes |
Designates the number of minutes Backup Exec should wait before canceling a pre-job or post-command that did not complete. The default time-out is 30 minutes.
|
On this media server |
Runs the pre- and post-commands on this media server only.
|
On each server backed up or restored to |
Runs the pre- and post-commands one time on each server backed up or restored to.
The pre- and post-command selections apply to each server independently. If you select this option, the pre- and post-commands are run and completed for each server before processing begins on the next selected server.
|
Default Pre/Post Commands options