日期:2014-09-23  浏览次数:25351 次

@echo off
C:
CD "C:\Program Files\WinRAR"
 
net stop MSSQLserver
winrar.exe a -ag"-[YYYY-MM-DD-HH-MM-SS]" -k -r -s -ibck -inul "D:\SQL2005备份生成的文件.rar" "D:\MSSQL\*.*" 
net start MSSQLserver
 
net stop Mysql
winrar.exe a -ag"-[YYYY-MM-DD-HH-MM-SS]" -k -r -s -ibck -inul "D:\MYSQL备份生成的文件.rar" "D:\MYSQL\*.*" 
net start Mysql
 
iisreset.exe