said: 
>... just do the same as now but use PARMS for standard settings i.e.  
>Drives, Souces & Target ! 
That's one option.  Some sort of control file would be better.  Your 
environment variable method could work, but is somewhat clumsy.  The 
reason for a control file rather than command line arguments is that a 
long command lines are hard to read and hard to maintain and the command 
line is easy to overflow.  That said, just defining the defaults at the 
start of the script along with instructions how to edit the site specific 
values would work too. 
I would expect the backup settings to change slowly over time, so an 
easily edited control file seems to be a good solution. 
>sensitive part of the script but I must adjust environment 
>settings accordingly  
>to my system and my needs once and only if my system environments changes 
>;-) 
Harry could have made the script somewhat more generic by using: 
  SysDriveMap('C:", 'L') 
to locate the drives and by using a stem to store the backup settings for 
each drive. 
>The rest of your script works like now ;-) 
Another thing I would attempt to do is automate the avaiable size logic 
somewhat.  This could be done by reading the log for the previous backup 
and extracting the uncompressed sizes.  This can be used to calculate an 
average compression ratio.  This along with the remaining space in the 
container and the backup size from SysDriveInfo() should be a pretty good 
estimator. 
Steven 
--  
--------------------------------------------------------------------- 
"Steven Levine"   MR2/ICE 2.31a #10183 Warp4/FP15/14.085_W4 
www.scoug.com irc.webbnet.org #scoug (Wed 7pm PST) 
--------------------------------------------------------------------- 
===================================================== 
To unsubscribe from this list, send an email message 
to "steward@scoug.com". In the body of the message, 
put the command "unsubscribe scoug-help". 
For problems, contact the list owner at 
"rollin@scoug.com". 
===================================================== 
<< Previous Message << 
 >> Next Message >>
Return to [ 04 | 
August | 
2002 ]
The Southern California OS/2 User Group
P.O. Box 26904
Santa Ana, CA  92799-6904, USA
Copyright 2001 the Southern California OS/2 User Group.  ALL RIGHTS 
RESERVED. 
SCOUG, Warp Expo West, and Warpfest are trademarks of the Southern California OS/2 User Group.
OS/2, Workplace Shell, and IBM are registered trademarks of International 
Business Machines Corporation.
All other trademarks remain the property of their respective owners.