I am using the Database Backup script by David Walsh(http://davidwalsh.name/backup-mysql-database-php) to backup my MYSQL database as a .sql file to my server.
I cre
The script looks very weak IMHO. You should consider using mysqldump it it's available in your system.
The basic command line would be:
mysqldump -hYOURHOSTNAME -uYOURUSER -pYOURPASSWORD infocap > dump.sql
You can test mysqldump in your local computer and, once you're happy with the results, either create a shell script or add it directly as a cron task.