I cannot count the number of times I log into a Windows server and find a tool installed that synchronizes the directories. Why, when we have robocopy?
Common usage examples:
Dry run, recursive, keep existing, retry once, wait 1 second to retry:
robocopy "\\fileserver-1\share$" "\\fileserver-NEW\share$" /XX /R:1 /W:1 /E /L"
After the Dry run, if all looks well, drop the “/L” flag:
robocopy "\\fileserver-1\share$" "\\fileserver-NEW\share$" /XX /R:1 /W:1 /E /L"
Robocopy allows you to mirror, replace, keep permissions, etc…
We will throw in more examples as we come across real world applications!