Last active
March 27, 2018 13:09
-
-
Save potasiyam/15d8d7054c23c4be563238c13a70a3dc to your computer and use it in GitHub Desktop.
sqldump and email
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mysqldump -uroot -ppassword dbname | gzip --best -c > /home/dbname.sql.gz | echo "This is the message body" | mail -s "dbname backup" -a /home/dbname.sql.gz potasiyam@gmail.com |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment