Copy Code code as follows:
@echo off
Echo starts backing up important data from this site!
xcopy "D:\web\yunsafe.com\wwwroot\*.*" "D:\web\yunsafe.com\bak\bakup%date:~0,10%\wwwroot\"/i/q
xcopy "D:\web\YUNSAFE.COM\WWWROOT\api" "d:\web\yunsafe.com\bak\bakup%date:~0,10%\wwwroot\api\"/e/i/q
xcopy "D:\web\YUNSAFE.COM\WWWROOT\archiver" "D:\web\yunsafe.com\bak\bakup%date:~0,10%\wwwroot\archiver\"/e/i/q
xcopy "D:\web\YUNSAFE.COM\WWWROOT\config" "d:\web\yunsafe.com\bak\bakup%date:~0,10%\wwwroot\config\"/e/i/q
xcopy "D:\web\YUNSAFE.COM\WWWROOT\data" "d:\web\yunsafe.com\bak\bakup%date:~0,10%\wwwroot\data\"/e/i/q
xcopy "D:\web\YUNSAFE.COM\WWWROOT\install" "d:\web\yunsafe.com\bak\bakup%date:~0,10%\wwwroot\install\"/e/i/q
xcopy "D:\web\YUNSAFE.COM\WWWROOT\Rewrite" "d:\web\yunsafe.com\bak\bakup%date:~0,10%\wwwroot\rewrite\"/e/i/q
xcopy "D:\web\YUNSAFE.COM\WWWROOT\source" "d:\web\yunsafe.com\bak\bakup%date:~0,10%\wwwroot\source\"/e/i/q
xcopy "D:\web\YUNSAFE.COM\WWWROOT\static" "d:\web\yunsafe.com\bak\bakup%date:~0,10%\wwwroot\static\"/e/i/q
xcopy "D:\web\YUNSAFE.COM\WWWROOT\template" "d:\web\yunsafe.com\bak\bakup%date:~0,10%\wwwroot\template\"/e/i/q
xcopy "D:\web\YUNSAFE.COM\WWWROOT\uc_client" "d:\web\yunsafe.com\bak\bakup%date:~0,10%\wwwroot\uc_client\"/e/i/q
xcopy "D:\web\YUNSAFE.COM\WWWROOT\uc_server" "D:\web\yunsafe.com\bak\bakup%date:~0,10%\wwwroot\uc_server\"/e/i/q
echo This site important data backup complete!
Echo begins to back up the MySQL database of this site!
xcopy "D:\Program files\mysql\mysql Server 5.1\data\yafan" "D:\web\yunsafe.com\bak\bakup%date:~0,10%\mysqldata\ yafan\ "/e/i/q
echo Database backup complete!
Echo starts packing all the data!
CD D:\web\YUNSAFE.COM\BAK
"C:\Program files\winrar\rar.exe" a-k-r-s-m1-inul "D:\web\yunsafe.com\bak\bakup%date:~0,10%.rar" BakUp%date:~0,10%
Echo Package all data complete!
Exit