Cmd to start stop and backup data directory

Post Reply
shockwave
Posts: 88
Joined: Mon Dec 15, 2008 10:45 am
OLAP Product: TM1
Version: 9.1.3
Excel Version: 2003 SP3

Cmd to start stop and backup data directory

Post by shockwave »

Hi All,

I thought I would post this within in the TM1 forums to see whether any of you have had an answer on the following query:
I have a script that currently stops 1 service then zips up the tm1 data directory and then restarts the service.
However, i need to adjust it so that it stops 2 services, then copies certain files across from 1 tm1 data directoy to another tm1 data directory and then backs up the first data data directory in instance 1 and then restarts both services.

My question is: Do i need to add some sort of pause or wait command after each script to ensure that the the scripts execute properly???? And if so what do i need to insert to make sure it fires off correctly?

###########################################

net stop "tm1_production_instance1"
net stop "tm1_production_instance2"

[ copies files from one data folder from instance 1 to data folder in instance 2]
"c:\executeSomeScript.vb"
[******** do i need some sort of wait command to ensure that the script runs b4 i run the next BackupScript????****]

[ copies files from instance 1 to backup directory]
"c:\backupScript.vb"
[******** do i need some sort of wait command to ensure that i dont start the services prematurely b4 i backup the data directory****]

net start "tm1_production_instance1"
net start "tm1_production_instance2"

#######################################

Cheers

Shock
shockwave
Posts: 88
Joined: Mon Dec 15, 2008 10:45 am
OLAP Product: TM1
Version: 9.1.3
Excel Version: 2003 SP3

Re: Cmd to start stop and backup data directory

Post by shockwave »

Hi All,

found this command: http://www.computerhope.com/dutil.htm
however, i would be guessing at how long I should let it sleep for... is there something else that would tell me when a script has finished running, so I can the script can
move to the next line to execute????

Cheers

Shock
Post Reply