Can anyone write a simple batch file?

tdean

Distinguished
May 4, 2001
1,052
0
19,280
when i do a backup using veritas we have a database program that stays open and doesnt backup. i would like to write a simple batch command to close the app and reopen it after backup completes. does anyone know how to do this? the app is called paradigm. there is an option under the advanced tab when you click active jobs in veritas that will allow this.

Welcome to hell. Here's your accordion.
 

tdean

Distinguished
May 4, 2001
1,052
0
19,280
paradigm is a fund raising database app. veritas, as you probably know is the tape backup app. whats happening is that the veritas backup skips over the paradigm database b/c it is "in use" (even if it isnt, just b/c its started on the server), so i want to add a batch command to veritas that will shut down the paradigm service/app when the backup starts and restart it when it finishes.

Welcome to hell. Here's your accordion.
 

jihiggs

Splendid
Oct 11, 2001
5,821
2
25,780
try disabling the service for that program, if there is one. if disabling the service causes the data base to not be in use your gold. if not we need to find a way to terminate a proccess from a command line, im sure there is a way to do it, ive never had the need.

wpdclan.com cs game server - 69.12.5.119:27015
 

tdean

Distinguished
May 4, 2001
1,052
0
19,280
well, if i stop that service, the app stops. i forgot to add that i leave at 3 and they work till 7. so i cant stop it. i wanted to have it stop at 9 for backup then restart on its own after backup completed. sorry, i forgot to mention that.

what im doing now isnt too bad, i added an entry in the "send to" menu for each day of the week and in the am i shut down the app, rt click the database and sent it to the respective folder that is being backed up. its a day behind, but thats ok. i just wanted to have veritas do all of it in case im not in to do that.

Welcome to hell. Here's your accordion.<P ID="edit"><FONT SIZE=-1><EM>Edited by tdean on 10/23/03 01:26 PM.</EM></FONT></P>
 

jihiggs

Splendid
Oct 11, 2001
5,821
2
25,780
you can make a batch file with this in it:
net stop "servicename"
and use the scheduler to run it at 7 or somthing, you might even be able to use veritas to run it before the backup job starts. then at 6 am or whatever time they get in schedule another batch file to run with:
net start "servicename"



wpdclan.com cs game server - 69.12.5.119:27015
 

tdean

Distinguished
May 4, 2001
1,052
0
19,280
ok... thats what im lookin for. thanks. i copied the service name from services etc and put it into veritas, so we'll see how it goes. i'll let you know. thanks again!!!

Welcome to hell. Here's your accordion.
 

craqon

Distinguished
Apr 3, 2003
218
0
18,680
Why don't you install the Open File Option from Veritas?

It's on the CD. Install the trial. Remote Option is more expensive than the Backup -Exec itself, but just see.

__
At this rate we'll all be going to hell. At least I'm flying there in bussiness class.