Easy Bash scripting question
Posted on 2004-08-31
I'm a programmer, but not familar with Linux scripting.
I have a script that stops MySQL, zips up the database files, and then restarts MySQL. The tar files are named mysql-YYYYMMDD.tar.gz, but I need to run the process more than once a day. So that I would end up with.
I'm guessing I'm going to have check to see if file ...001 exists then ...002 in a loop, but I'm having a hard time getting it to work.