IAM Backup is package made of two classes. One performs the backup of the selected MySQL database, and the second restores the database. Both classes support gzip-compressed files for improved performance. When performing the backup, the user is prompted to download the backup file, straight from the browser. Alternatively, the backup can be stored on the local server at a predefined location. Restoring the database (or copying it to another server) is just as easy. This class is featured on PHPClasses.org and Freshmeat
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
Rate this script!