day.sh 412 B

12345678
  1. #!/bin/bash
  2. date=`date +%Y%m%d`
  3. ip=`/sbin/ifconfig eth1|grep inet|grep -v 127.0.0.1|grep -v inet6|awk '{print $2}'|tr -d "addr:"`
  4. #将昨天的访问量入库
  5. /usr/local/nginx/html/huahuibao/yii shell/visit
  6. #数据库每天增量备份
  7. /usr/bin/rsync -avz --delete --progress -e ssh /usr/local/mysql/log root@118.190.3.200:/opt/target_backup/${ip}/mysql
  8. /usr/local/nginx/html/huahuibao/yii shell/day-notice ${ip}