Discussion Locked

Backup Exec Scripts

0 helpful
5 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

NetWare5.0/Backup Exec 8.0

I need to create a script in Backup Exec that will do the following:

1. Stop my Sybase services.
2. Backup the data from the application that runs from Sybase.
3. Start the Sybase services.
4. Backup the rest of the selected information on the server.

I'm not quite sure where to start. I can write a batch file that will execute the STOP.NCF then run the job, but how do I make it start the Sybase services again.

Can I use more than one script for the same job? If I create two scripts, how will Backup Exec know which order to execute them in? One script to stop the services and one script to start the services. Then how does the rest of the job execute?

Please, only those who knows exactly what to do. I don't want to waste time with guesses.

Thanks.

5 replies

by don christner

If you use CALL within a batch file, it runs the program that you CALLED and will return to the line after the CALL only once it completes the program that was CALLED.

Therefore, you can CALL a batch file/program to stop your services, CALL abatch file/program to run the backup and then CALL a batch file/program to restart your services.

Another way would be to schedule times to run each program. This won't be as good because the amount of time needed to complete each step could bevariable.

Don

by q2ggirl

Thank you for your suggestion. I'm going to use the PRE/POST commands to start and stop the Sybase Services.

But I wasn't aware of the call command.

by q2ggirl

This sounds like it will work. Thanks.

How exactly do I use the Call command to run the Sybase stop command from the path where it is located on the server?

Batch file example:

CALL SYS:\APPLCATIONS\DIRECTORY\STOP.NCF

Will this syntaxwork?

by q2ggirl

Also, how do I make Backup Exec execute the job and then use a call statement to start the Sybase services? Or in general, how do I make the job execute after using a call statement to stop/start a service?

This discussion is closed to new replies.