Table of ContentsLibraryView in Frames

Specifying the command to be run by the Run Command After Operation feature

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

  1. 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.
  2. Select Yes, Run a command after this operation in the Backup wizard or Run Command After Operation in the Backup and Verify window.
  3. Under Specify a computer where..., select the host on which your program or script resides.

  4. Under Specify the full path..., select your program or script.

  5. 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.

  6. 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.
  7. 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:
Related concepts
Automatic backup archiving using the Run Command After Operation feature
Archives created with NDMP or the dump command
Related reference
Example: Using a Windows backup utility to archive SnapManager backups
Command arguments supported by the Run Command After Operation feature