1. Create a file like this in notepad (don't give it any extension):
Code:
#!
echo Dumping database to file...
mysqldump --opt -uusername-ppassword dbname > ~/dump.sql
echo Dump complete!
2. SSH into your host and type (where
filename is whatever you named the file in step 1)
Code:
chmod +x ~/filename
3. Set the script to be a cron job. Ask your host on how to do this.