- #!/bin/sh
- source config.sh
- sql=`date '+%Y-%m-%d_%H-%M-%S'`.sql
- mysqldump --all-databases > $sql --user=$username --password $pas
- echo """
- hi
- i'm clara. a server Manager bot
- this is the Backup for your databases system
- """|mutt -a $sql -s "database Backup for "`date '+%Y-%m-%d_%H-%M-%S'` -- $email
- rm $sql
|