You can run batch files or shell scripts before and after restore jobs.
Procedure
-
From the CommCell Browser, click Client Computers > client > SQL Server.
-
Right-click the instance, and then click All Tasks > Browse and Restore.
-
In the Browse and Restore Options dialog box, click Advanced Restore, then click View Content.
-
In the browse view, select the data that you want to restore, and click Recover All Selected.
The SQL Restore Options dialog box appears.
-
Click Advanced.
The Advanced Restore Options dialog box appears.
-
On the Pre/Post tab, make the following selections:
-
To run a script before the software performs the backup operation, in the Pre Recovery Command box, type the full path to the script.
-
To run a script after the software performs the backup operation, in the Post Recovery Command box, type the full path to the script.
-
To run the post recovery command regardless of the job outcome, select the Run Post Restore Process for all attempts check box.
-
Select one of the following connection options:
-
Use Local Accounts - Select this option if the local account has permissions to execute the processes on the destination client.
-
Impersonate User - Select this option and enter the credentials for a user that has the permissions to execute the processes on the destination client.
-
-
Click OK.
-
-
Click OK.