I also use a shell script under linux, scheduled as a cron job. You can just copy the DB files, of course, but you are also copying all the cruft that way too. If one needs to restore data, may as well also wind up with a squeaky clean DB as well. :) Here's the simple version of the script I use, which also gzips the SQL file. Edit it to suit.<div>
<br></div><div><div>#!/bin/sh</div><div>TIMESTAMP=`date +%m%d%Y-%H%M%S`</div><div>mysqldump -u username -password databasename | gzip > /path/to/backupdir/dbname_$TIMESTAMP.sql.gz</div><div><br></div><div><br></div><div>
Marcus Llewellyn</div></div>