Robocopy is a Microsoft Tool to synchronize 2 folders, and keep Windows rights. You should find it in : C:\Windows\System32. This is very usefull to migrate a file server to a new one. You can also use xcopy, which can do the same.
Fisrt synchro will copy all the content of a folder, or drive (can be executed serval times), Y: is the source, X:\ the target:
Robocopy Y: X:\ /E /SDATO /NP /W:1 /R:1 /TEE /+LOG:C:\logfile.txt
for final syncro, will delete file in destination, if no more present in source:
Robocopy Y: X:\ /E /SDATO /MIR /NP /W:1 /R:1 /TEE /+LOG:C:\logfile.txt