定时备份mysql

@echo off
set filename=%date:~0,4%%date:~5,2%%date:~8,2%%time:~0,2%%time:~3,2%%time:~6,2%
mysqldump --single-transaction --flush-logs --master-data=2 -uroot -proot www >d:\db\%filename%.sql

posted @ 2016-05-03 14:26  绿尘枫  阅读(145)  评论(0编辑  收藏  举报