Create A Custom Backup Script With Windows Robocopy by Britec
Here’s what some switch’s means:
data = source
archive = target
/E = copy all subdirectories even empty ones
/COPYALL = copies all attributes
/Z = copies in restartable mode
/R:3 = retry up to three times
/W:10 = wait10 seconds between retries
/LOG… = log all operations to the specified file
/QUIT = exits the command-line when done
/XO = excludes older files if they already exist on the destination, unless the source has the same file with a newer date
RoboCopy is a part of the Windows Server 2003 Resource Kit
https://download.microsoft.com/download/f/d/0/fd05def7-68a1-4f71-8546-25c359cc0842/UtilitySpotlight2006_11.exe
https://lab.technet.microsoft.com/en-us/magazine/dd547088