Hi James,

> 
> I've attached a rewritten, but logically similar script you can
> try...or not :)  DISCLAIMER: it is untried - I don't have a
> tape-equipped Linux system to test on!  I like scripting and your
> approach is a fairly common and relaxed way to run a backup.  Not
> needing to do "hot" backups of MySQL is a luxury!  Anyway, have a look
> at the script and feel free to contact me with any questions, or hit
> the list up for feedback.
> 

I removed the /sys folder from the script that I wrote and everything
went fine.  I have not tried your script rewrite fully yet as we had a
number of other disasters today and time was against me but I will try
it as soon as I can.
> 
> For the scripting gurus on the list, yes, I know there are many
> short-hand notations I can use to streamline things, but I wanted to
> keep it mostly readable while providing some portability/extensibility
> to the script.

Actually, I really appreciated your elegant rewrite of my original and I
have learned a lot from that.  I really must get smarter when writing
these things.  My problem is that I will start with a couple of lines
and then keep tweaking it and next thing I know I have a monster written
in the form I displayed.  That means I should pre-plan what I am
attempting to do and then write the script more elegantly.

Thanks again for taking the time to give me a lesson in better
coding/scripting.

Regards,

Rick


-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

Reply via email to