http://blog.siteplanb.com/the-perfect-automated-mysql-backup-solution-with-e-mail-notification/