Robocopy /mon function without making a full pass
Posted on 2006-10-23
I'm playing around with using robocopy /mon to keep my remote wan accelerator appliance's cache fresh. Basically I'm mirroring data from my centralized file server to remove 'dummy' file servers. By caching the traffic from the robocopy job on the remote wan accelerators, my remote users experience near lan-like access to the central file server, and the 'dummy' file servers are only accessed read-only, and only in the event of a wan failure.
Robocopy with the /MON /E switches works great for this, except I have one nagging complaint: every time robocopy detects a change it kicks off a full copy job against the folder, which can take a long time for me due to number of objects in the folder, and the lack of speed on some of my wan links -- even though the only file that actually gets copied is the one that changed.
What I would like to do is schedule a full mirror job once a day (for cleanup), and have the monitor job (or something to replace it) running 24/7 that will copy a changed file immediately, and without checking the rest of the folders -- which takes too long and is creating unnecessary wan traffic.