By Martin Stut, 2009-10-02

This batch file does a reliable backup of Windows Vista Users to an external hard drive. There will be a new directory for each day the script is run. For Windows language settings other than German, you will need to adapt the SET FULLDATE line. FULLDATE should be something like 2009_10_31.

SET TARGETPATH=F:\Sicherung
SET FULLDATE=%date:~6,4%_%date:~3,2%_%date:~0,2%
echo FULLDATE=%FULLDATE%
SET TARGET=%TARGETPATH%\%FULLDATE%
mkdir %TARGET%
rem robocopy C:\Users %TARGET% /S /V /R:0 /W:0 /PURGE
xcopy C:\Users %TARGET% /S /C /I /R /Y