linux脚本备份数据库,压缩,FTP下载
摘要:
#!/bin/shmonth=`date +%m`day=`date +%d`year=`date +%Y`#hour=`date +%k`MYDATE=$year-$month-$daymysqldump -h 127.0.0.1 -ucnrfadmin --default-character-set=latin1 -p123456 netoffice|gzip>/var/www/db_backup/db-$MYDATE.gzcp -f /var/www/db_backup/db-$MYDATE.gz /var/www/db_backup/db-system.gz ftp -n< 阅读全文
posted @ 2012-11-07 18:19 开心园地 阅读(162) 评论(0) 推荐(0) 编辑