I needed to install mutt on my JeOS virtual machine. The system had no Internet connectivity because the machine is sitting behind internal firewall. Mutt is handy little tool for scripting and it allows you attach your files. The files can anything, I will use this tool to email me my mysql database dumps.
Download the .deb files:
Copy the installation files and install them:
- dpkg -i mutt_1.5.17+20080114-1ubuntu1_i386.deb
- dpkg -i mutt-patched_1.5.17+20080114-1ubuntu1_i386.deb
The following line I scheduled to email me the mysql dump.
echo 'Blog Name:Your mySQL Backup is attached' | mutt -a $DBNAME-backup-$DATE.sql.gz $EMAIL -s "$DBNAME-backup-$DATE database Backup"