website 391 B

12345678910111213141516171819
  1. #!/bin/sh
  2. source config.sh
  3. config=`date '+%Y-%m-%d_%H-%M-%S'`.zip
  4. zip -r $config /var/www
  5. md5=$config
  6. if [ "$use_ftp" == "yes"
  7. then
  8. ./ftp $ftp_username $ftp_pas $ftp_server $config
  9. else
  10. echo """
  11. hi
  12. i'm clara. a server Manager bot
  13. this is the Backup for your all websites
  14. file md5:
  15. $md5
  16. """|mutt -a $config -s "Backup for all your websites"`date '+%Y-%m-%d_%H-%M-%S'` -- $email
  17. fi
  18. rm $config