FOR /F "TOKENS=1* DELIMS= " %%A IN ('DATE/T') DO SET CDATE=%%B
FOR /F "TOKENS=1,2 eol=/ DELIMS=/ " %%A IN ('DATE/T') DO SET mm=%%B
FOR /F "TOKENS=1,2 DELIMS=/ eol=/" %%A IN ('echo %CDATE%') DO SET dd=%%B
FOR /F "TOKENS=2,3 DELIMS=/ " %%A IN ('echo %CDATE%') DO SET yyyy=%%B
SET LocalFolder=%mm%%dd%%yyyy%
mkdir %LocalFolder%
mkdir %RemoteFolder%
stsadm -o backup -directory %LocalFolder% -backupmethod full -item "Windows Sharepoint Services Web Application"
xcopy %LocalFolder% %RemoteFolder% /E /Y