Windows – How to mirror a folder (copy only missing and changed files recursively) in windows

mirrormirroringwindowsxcopy

I'm trying to find a fast way to recursively update a folder and all subfolders from another folder. Obviously, a full delete and Xcopy would work but that is very slow.

After the update, the destination folder should exactly match the source folder. Changed files and new files should be copied.

If it makes it easier, don't worry about deleting files that are in the destination folder but missing in the source folder.

This deploy/mirror/update operation seems pretty basic. Do I really need to write a C# script to accomplish it?

Best Answer

RoboCopy is a command line tool provided by Microsoft that can do mirroring. The Wiki page also mentions a GUI.

Related Topic