MySQL Backup

I needed a PHP script that would backup a MySQL database and email the copy to a specified email address. I found parts of the script below on the we and added them together along with some
of my PHP code. This script will backup all tables in a single database, using mysqldump, zip the resulting file and email the zip file as an attachment to a specified email address.

To use this script, download the file, change the .txt extension to .php and change the parameters at the top of the file. You can run the script interactively or setup a cron job or a Windows Scheduled Task.

[The requested file http://threegerbers.com/examples/mysqlbackup.txt could not be found]

Tags: ,

Leave a Reply

You must be logged in to post a comment.