批处理备份
@echo off
echo.
echo 网站程序备份
echo *****************************
echo.
echo 今天是 %date%
echo 时间是 %time%
echo.
echo *****************************
set "Ymd=%date:~,4%%date:~5,2%%date:~8,2%%time:~0,2%%time:~3,2%%time:~6,2% "
echo %Ymd%
set "YM=%date:~,4%%date:~5,2%%date:~8,2%"
echo %YM%
set "HH=%time:~0,2%"
echo "%HH%"
md "D:\websitebak\bak\%YM%\%HH%"
xcopy D:\a\ROOT D:\websitebak\bak\%YM%\%HH% /e /s /y
echo 网站程序备份完成,请进行检查。。。
echo.
echo.