I\'ve created a script that runs every night on my Linux server that uses mysqldump to back up each of my MySQL databases to .sql files and packages them togeth
mysqldump
You can use mutt to send the email with attachment
mutt -s "Backup" -a mysqldbbackup.sql backup@email.com < message.txt