We Recommend

bash Cookbook: Solutions and Examples for bash Users bash Cookbook: Solutions and Examples for bash Users
bash Cookbook teaches shell scripting the way Unix masters practice the craft. It presents a variety of recipes and tricks for all levels of shell programmers so that anyone can become a proficient user of the most common Unix shell -- the bash shell -- and cygwin or other popular Unix emulation packages.


Posted By

miziomon on 03/18/07


Tagged

mysql Bash


Versions (?)


Who likes this?

4 people have marked this snippet as a favorite

tylerhall
basicmagic
Leech
jamesming


mysqldump2mail


Published in: Bash 


URL: http://maurizio.mavida.com

  1. mysqldump -u[utente] -p[password] [nomedatabase]| gzip --best -c > [nomedatabase].sql.gz && (date && echo "backup mysql" && uuencode [nomedatabase].sql.gz wordpress.sql.gz) | mail [miamail@dominio.ext] -s "backup mysql"

Report this snippet 

You need to login to post a comment.