Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

NT Script???

Status
Not open for further replies.

skersrule

IS-IT--Management
Nov 15, 2002
5
US
I'm have a Lotus Notes db running on NT 4.0. The system is running 24x7 and I've noticed my backups vary in size on a day to day basis. I'm only backing up about 9GB worth of data, but sometimes that number drops down to as little as 6.5GB.
My conclusion is that the main Lotus DB is being accessed during the backup period, thus the backup software is viewing this db/file as being open and not backing it up (I have that option turned off because I'm not confident of it's ability).

I've found a 2 hour window I can shut down the lotus db and I want to schedule my backup to run during this period. Only problem is, this window is from 2am - 4am.

My question is:

Can I write a NT Script shutting down the Lotus db at 2am and then have it start the db back up at 4am? If so, how would I go about accomplishing this task?

-Brandon
 
well you could write two bacth files like such


Rem batch to start database
net start database
Rem End

Rem Batch to stop database
net stop database
Rem end

'database' refers to the name of the lotus database service. I don't know what it is so you will have to look at your services and find out what the 'DisplayName' is. You can run at the command line on the server the command:

net start

Which will give you a list of all running services to find the name of the service.

Then I would create two scheduled task. One to stop then service @ 2am. And one to start the service @ 4am. You have to set up these jobs to run as a user whom has permissions to stop the Lutos services.


HTH - Mike
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top