Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Robocopy /mon function without making a full pass

Posted on 2006-10-23
6
Medium Priority
?
2,521 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
[X]
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
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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

So you have two Windows Servers and you have a directory/folder/files on one that you'd like to mirror to the other?  You don't really want to deal with DFS or a 3rd party solution like Doubletake. You can use Robocopy from the Windows Server 200…
On July 14th 2015, Windows Server 2003 will become End of Support, leaving hundreds of thousands of servers around the world that still run this 12 year old operating system vulnerable and potentially out of compliance in many organisations around t…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
Suggested Courses

604 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