摘要:
将下面的代码保存成backup.bat文件,加入到计划任务里。@echo off REM ========== mysql ==========net stop mysqld:cd "D:\Program Files\MySQL\MySQL Server 5.5\data\farmer"xcopy *.* D:\db_bak\farmer\%date:~0,10%\ /ynet start mysqlcd "D:\chinafarmer2013"xcopy *.* D:\db_bak\www\%date:~0,10%\ /s/e/yREM ======= 阅读全文