database 306 B

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