SnapManager 3.1 for Microsoft Exchange includes the capability to automatically run a command after a backup or verification is complete. The command-line parameters can be inserted based on the components of the backup or verification. This feature, called Run Command After Operation, enables you to automatically archive a backup.
Note
The command is run only after a successful backup or verification. If the backup is not completed successfully, or if the verification fails, the command is not run.
To support the automatic archiving of a backup, which creates snapshots with variable names, SnapManager 3.1 for Microsoft Exchange provides the following SnapManager variables:
This variable expands to the name of an Exchange database snapshot, for example, exchsnap__WINSRVR5_01-06-2004_11.52.36.
Note
The number of database snapshots in a SnapManager backup set depends on the number of volumes used to store the storage groups included in the backup.
This variable expands to the name of a SnapInfo directory snapshot, for example, eloginfo__WINSRVR5_01-06-2004_11.52.36.
This variable expands to the name of the SnapInfo directory. If you use this variable, you must provide the correct path to the directory.
This variable expands to the complete path and name of the SnapInfo directory, for example:
I:\NetApp SnapManager\SnapInfo\EXCH__WINSRVR5\SG__First Storage Group\WINSRVR5_01-06-2004_11.52.36
Note
The SnapInfoPath variable is automatically surrounded by double quotes so that it can contain spaces without affecting the script invocation on the Windows command line. If you do not want the double quotes to appear in your command line, remove them from the Command Arguments field in the Run Command After Operation window.
In the following example, the script C:\SnapManagerScripts\scriptname would be invoked with the following parameters:
The corresponding Run Command After Operation dialog box would look like this:
For more examples of command lines and scripts that use the SnapManager variables, see the examples for these archiving methods:
To run a command or invoke a batch file after backup or verification, complete the following steps.
Caution
Make sure that you archive all components of a backup set together. For more information about SnapManager backup sets, see SnapManager backup sets and SnapManager snapshot naming conventions.
| 1 |
When setting up your backup or verification in the Backup Wizard or Backup tab, select the Run Command After Operation check box.
ResultThe Run Command After Backup Setup window is displayed before the operation is scheduled or initiated.
|
| 2 |
Specify the computer where you want the command to be run. |
| 3 |
Specify the full path of the command you want to run. Note |
| 4 |
In the Command Arguments field, specify the command arguments for the command or batch file invocation. You can type the arguments or, for SnapManager arguments, you can select them in the SnapManager Variables list and click Select to insert them in the Command Arguments field. Caution For details, see Types of SnapManager variables. Note |
| 5 |
Click OK to return to the backup or verification setup process. Result:The command you specified, with the snapshot and snapinfo information for this backup inserted, runs when the backup or verification is complete. |
If you run a particular command often, you can create a default command setup so that you don't have to enter the command information each time you initiate a backup or verification.
To specify a default command after operation setup, complete the following steps.
| 1 |
From the SnapManager main window, select Options > Default Run Command After Backup Setup. Result |
| 2 |
Enter the information for the command that you run most often. For details, see Running a command after backup or verification. |
| 3 |
ResultSnapManager verifies that the specified program exists on the specified system. SnapManager does not run the command at this time. |
Copyright © 1994-2004, Network Appliance, Inc. All rights
reserved.
Part No. 215-00858
File: archive7.htm
Last updated: Tue Jun 15 15:34:14 2004