Solved

Robocopy /mon function without making a full pass

Posted on 2006-10-23
6
2,501 Views
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.

Thanks,
Scott
0
Comment
Question by:smccoskery
  • 2
  • 2
6 Comments
 
LVL 1

Expert Comment

by:culturaltrust
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.
0
 

Author Comment

by:smccoskery
ID: 17791370
I'm using version XP010.

Thanks,
Scott
0
 
LVL 1

Expert Comment

by:culturaltrust
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
0
 

Author Comment

by:smccoskery
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:  http://www.snapfiles.com/get/berkesnotify.html (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.

Thanks,
Scott
0
 
LVL 1

Accepted Solution

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

Computer101
EE Admin
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

I guess it is not common knowledge to most Wintel engineers/administrators: If you have an SNMP-based monitoring system in your environment (and it's common to have SNMP or Syslog) it's reasonably easy to enable monitoring of the Windows Event logs,…
Numerous times I have been asked this questions that what is it that makes my machine log on so slow, there have been cases where computers took 23 minute exactly after taking password and getting to the desktop. Interesting thing was the fact th…
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

772 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