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