Hi there,
I personally use mysqldump to backup my mysql databases. I have a cron job set to execute every day at 2:00 AM. You could even execute a script that emails the dump file to yourself.
umm... well, i tried to study how PHPmyADMIN did it, but i never was good at reading someone else's codes.. so, it just made me very confused, and gave me a head ache... so what i did was, i'm just using a simple php function cleverly named "copy()"
I simply have my app copy the databases and tables in the mysql/data/* folder into another location.. it seems to work pretty well.. i've had talks with people from MIRC and they said it was ok as long as noone wuz writting to one of the tables.. or else the data would be messed up.. so locking the tables and then copying the files is my trick..
This file contains a backup.php file i found in a Webshop..
i think it can be usefull .. it has more features.. backups it in a file that can be compressed.. and also has a restore function..