While specifying a backup or verification operation, you can use Run Command After Operation to specify the details of the command that you want to run after the operation finishes. Using default values for the command arguments frees you from entering the command information each time you initiate a backup or verification operation.
Before you begin
About this task
If more than one Snapshot copy of the same type exists for your command, include that Snapshot copy’s variable name once for every Snapshot copy. If you do not, you cannot create a complete archive. For example, if you enter myscript $exchSnap $exchSnap, the command that is generated is myscript snap1 snap2 .
Steps
- Use the Backup wizard or the Backup and Verify window to specify a full database backup, a transaction log only backup, or a database verification.
- Select Yes, Run a command after this operation in the Backup wizard or Run Command After Operation in the Backup and Verify window.
- Under Specify a computer where..., select the host on which your program or script resides.
- Under Specify the full path..., select your program or script.
- Type the command input string in Command Arguments.
You can directly enter text or select the variable you want to enter from the SnapManager Variables list.
- Repeat Steps 4 and 5 as needed until the Command Arguments box contains all of the arguments that you want to pass to your program or script.
- Click OK and return to the backup or verification setup process.
After the backup or verification finishes successfully, the command that you specified, with the Snapshot copy and SnapInfo information for this backup operation inserted, runs automatically.
Example: script and the required parameters
Suppose that you want to run the following script:
C:\SnapManager Scripts\scriptname.bat
You need the following parameters:
- Name of the database Snapshot copy
- Name of the specific SnapInfo directory
- NTFS path to the SnapInfo directory