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
[EMAIL PROTECTED]
------------------------------------------------------------------------------
/*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*/

-----Original Message-----

Date:    Mon, 1 Apr 2002 12:37:41 +0200
From:    =?iso-8859-1?q?Francisco=20Molero?= <[EMAIL PROTECTED]>
Subject: Re: Copy Stgpool and Migrations

Hi,
you can run all commands in a script, then you can run
the commands one per one. In addicion, you should see
the options movebatchsize ( 1000) and movesizethresh
(500), this options improve the performance in process
like migration , backup stg, reclamations,etc..

--- "Dearman, Richard" <[EMAIL PROTECTED]> escribis: > I
backup my systems to a disk stgpool then backup
> that stgpool to an offsite
> copy stgpool library at 8am then at 11am I migrate
> the disk stgpool to an
> onsite tape library.  Currently I schedule the jobs
> in tsm by just issuing
> the proper commands at 8am and 11am.  The problem is
> my 8am backup to my
> copy stgpool sometimes runs into the migrattion at
> 11am.  Does anyone have a
> more efficient way of doing this instead of me just
> changing the migration
> to a later time.
>
> Thanks
> Richard

Reply via email to