About running command files during a backup
|Article:HOWTO13634|||||Created: 2008-01-05|||||Updated: 2013-10-17|||||Article URL http://www.symantec.com/docs/HOWTO13634|
You can use command files (.exe programs with no user interface, .cmd, .bat) and configure them to run during all phases of a backup. Command files can be used to integrate with any backup routines that you may be running on the client computer. Or, command files can be used to integrate with the applications that may use a drive on the client computer. These command files can run in the following three different stages during the creation of a recovery point:
Any command files that you specify in the Command Files dialog of the wizard are copied to the Backup Exec System Recovery Manager server (the default path is \Program Files\Symantec\Backup Exec System Recovery\Manager\Services\tomcat\webapps\axis\depot\commands\commandFiles.) When you assign the backup job to client computers, any command files you specified are also assigned to the backup. Be sure you have the necessary rights to run each command file.
To use a Visual Basic script file (.vbs) during a backup, you can create a batch file (.bat) that runs the script. For example, you can create a batch file called stop.bat that contains the following syntax:
The command files that you install and use (such as an .exe) cannot depend on any user interaction. The files also cannot have a visible user interface while they are running during a backup. You should test all of the command files you intend to use, outside of Backup Exec System Recovery, before using them during a backup.
When the backup begins, the command file runs during the specified stage. If an error occurs while a command file is running, or the command file does not finish in the time you specified (regardless of the stage), the entire backup is stopped. The command file is ended (if necessary), and the error information is logged and displayed.
Table: Recovery point creation stages
Article URL http://www.symantec.com/docs/HOWTO13634