MySQL Dump database to Email

To backup a database and send it to email, add a cron job like:

mysqldump -ce –user=user –password=pass dbname | gzip |uuencode dbbackup.gz| mail -s “xxxx Database Backup” me@mydomain.com

You can leave a response, or trackback from your own site.

Leave a Reply