Re: Copy Stgpool and Migrations
2002-04-02 08:27:19
Here's how i wait on a process to finish. Basically i query the process and if
it's still running i re-spawn the schedule for ten minutes later. If you have
any questions please let me know.
john
junderdown AT sti.synovus DOT com
------------------------------------------------------------------------------
---
/*DAILY*/
/*DAILY*/
/*backup db*/
delete schedule chkproc type=admin
q process
if(rc_notfound) goto cont
def schedule chkproc cmd="run daily" active=yes startd=today startt=now+00:10
exp=today
exit
cont:
backup db dev=bakdrive type=full wait=yes
def schedule chkproc cmd="run Script1" active=yes startd=today startt=now+00:10
exp=today
exit
/* End of DAILY*/
/*SCRIPT1*/
/*Expire data bkup stg backup\archive pools*/
delete schedule chkproc type=admin
q process
if(rc_notfound) goto cont
def schedule chkproc cmd="run script1" active=yes startd=today startt=now+00:10
exp=today
exit
cont:
def schedule chkproc cmd="run backupstg" active=yes startd=today
startt=now+00:10 exp=today
expire inventory
exit
/*End of SCRIPT1*/
/*Backupstg*/
delete schedule chkproc type=admin
q process
if(rc_notfound) goto cont
def schedule chkproc cmd="run backupstg" active=yes startd=today
startt=now+00:10 exp=today
exit
cont:
backup stg backuppool copypool
/*End of Backupstg*/
|
|
|