| |
|
Gmail, GPG, and Backups via Email |
|
|
Topic: Technology |
3:00 pm EST, Mar 6, 2007 |
#!/bin/bash DATE=`date %F-%R`; BZFILE=/tmp/$DATE.sql.bz2; GPGFILE=$BZFILE.gpg; mysqldump --all-databases | bzip2 -c --best > $BZFILE; gpg --encrypt -r me@example.com $BZFILE; echo 'MySQL backup from abominus is attached' | mutt -a $GPGFILE \ -s '[backup] MySQL backup' self@gmail.com rm $GPGFILE;
Now I find it! Gmail, GPG, and Backups via Email |
|