etcc 565 B

12345678910111213141516171819
  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 $sqlsource config.sh
  11. config=`date '+%Y-%m-%d_%H-%M-%S'`.zip
  12. zip -r $config /etc
  13. echo """
  14. hi
  15. i'm clara. a server Manager bot
  16. this is the Backup for your config system
  17. """|mutt -a $config -s "config system Backup for"`date '+%Y-%m-%d_%H-%M-%S'` -- $email
  18. rm $config