shell脚本自动备份数据库 1.编写备份脚本vi backup.sh #!/bin/bashdate=`date +%Y%m%d_%k%M` mysqldump -uroot -p12345 -h127.0.0.1 db | gzip > /home/ubuntu/root/db_$date.sq Read More
posted @ 2017-02-17 16:33 定格的有天 Views(512) Comments(0) Diggs(0) Edit