Never been to TextSnippets before?

Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world (or not, you can keep them private!)

About this user

« Newer Snippets
Older Snippets »
1 total  XML / RSS feed 

send email with attachment from command line

useful for sending db backups

echo command is for the body
-s specifies the subject
-a gives the attachment
finally the recipient
email will be sent as root@serveraxis
echo "database backup for 070614" | mutt -s "backup: myerasmus_db_070614" -a erasmus_db_070614.sql.bz2.gpg [email address]
« Newer Snippets
Older Snippets »
1 total  XML / RSS feed