Robocopy /mon function without making a full pass

Posted on 2006-10-23
Last Modified: 2012-08-13
Hi there,

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.

Question by:smccoskery
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2

Expert Comment

ID: 17791343
Which verison of Robocopy?  The 2003 verison has a bandwidth limitor, as well as the ability to set how long to wait between copied.  /MOT:n   n=how long.  /IPG:n n=how many ms to wait between 64k packets.

This will not take care of the "monitor" job, for that type of functionality I would suggest something like WANSync.  

Sorry I could not help more.

Author Comment

ID: 17791370
I'm using version XP010.


Expert Comment

ID: 17791526
Great,  You have the most current.

I for your full mirror I would do something like.  Robocopy source dest /COPYALL / MIR /IPG:5 /RH 2100-0300 /MON:100

The bandwidth for the /MIR is actully very small compaired to a full copy, and the 5ms time above will help, and I would increase this number by 5 until you find a good level.

This will Mirror all data, between the hours of 9pm and 3am, and rerun if there is more than 100 file changes during this time.

There are many Third Party products that will sync your data, using very little bandwidth, I use XOSoft WANSync.

Hope this helps

Author Comment

ID: 17791720
Thanks, I think I've got the syntax down I want for the full mirror job -- it's the job that will push changed files immediately I'm concerned with.

As an example, an idea I have is to use some kind of 'changed files' monitoring utility that I can have execute a script when a file changes, and be able to pass the changed file name to the script.  This is a utility I found that is close to what I need: (but I don't know how to capture it's results).  The script would just copy the changed file to the remote server.  An added benefit of this is that I could write the script so the file got copied to multiple remote servers -- something I can't do with robocopy /mon without running multiple instances of it.

I realize replication software can do this job for me, but since my replication strategy is rather complex due to differing wan link speeds (I want to have granular control over which folders get replicated and to where), a scripted solution appeals to me... plus it's free.


Accepted Solution

Computer101 earned 0 total points
ID: 18009941
PAQed with points refunded (500)

EE Admin

Featured Post

Enroll in May's Course of the Month

May’s Course of the Month is now available! Experts Exchange’s Premium Members and Team Accounts have access to a complimentary course each month as part of their membership—an extra way to increase training and boost professional development.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
home folder path for users 4 109
Moving RDP Server to New Server. 3 77
Exchange 2003 converted to VM but now email does not work 5 79
Questions about DHCP migration 5 118
by Batuhan Cetin In this article I will be guiding through the process of removing a failed DC metadata from Active Directory (hereafter, AD) using the ntdsutil tool in a Windows Server 2003 environment. These steps are not necessary in a Win…
While rebooting windows server 2003 server , it's showing "active directory rebuilding indices please wait" at startup. It took a little while for this process to complete and once we logged on not all the services were started so another reboot is …
In an interesting question ( here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question