You can run commands before or after a restore job, and set the following conditions for these commands:
-
Run the post-job command only if the pre-job command is successful
-
Allow Backup Exec to check the return codes (or exit codes) of the pre- and post-job commands to determine if the commands completed successfully. An exit code of zero returned to the operating system by the pre- or post-job command is interpreted by Backup Exec to mean the command completed successfully. A non-zero exit code is interpreted by Backup Exec to mean the command ended with an error.
See Setting default pre/post commands.