Thanks to some advice from a friend at PHP Classes, I’ve updated my free MySQL Backup and Restore class: IAM_Backup, originally published in IAM Backup – A Free Database Backup PHP Class. Basically, this class allows you to perform a full-DB backup from PHP and then Restore it either on the same server or another. It’s pretty simple to use and it’s easy to integrate with your PHP programs.
This class is licensed under the GNU Lesser General Public License (LGPL), so feel free to use it, modify it as you want, although a little credit is always welcome. Get the full IAM Backup Source Code and Documentation here