Tech Support > Microsoft Windows > Windows Server > Robocopy 2 way replication
Robocopy 2 way replication
Posted by Graham Webber on March 29th, 2007


Hello

I have been using robocopy from the resource kit for a while now for 1 way
replication, but I have come across a situation where I need 2 way
replication, is this possible?

I cant think of any way to achieve this, but possibly having 2 scripts that
run in each direction, only copying files (rather than using the /purge
option) but then file will not be deleted.

DFS is not an option as the destination is a remote network storage device
(on the end of a slow VPN)

Does anybody know of a product (free) that will enable this.

Regards
Graham



Posted by Pegasus \(MVP\) on March 29th, 2007



"Graham Webber" <asl@noemail.noemail> wrote in message
news:egVoMBgcHHA.4388@TK2MSFTNGP05.phx.gbl...
You need to think carefully about what exactly you want before
you look for a tool. "Replicating folder A to folder B" means:
make folder B identical to folder A. This implies that if the file
"test.txt" exists in folder B but not in folder A then it must be
deleted from folder B. However, if you replicate folder B to
folder A then "test.txt" must be copied to folder A. This is
obviously contradictory.



Posted by Graham Webber on March 29th, 2007


Thank you for the reply, maybe i didnt word my question correctly, i want a
tool to mirror a folder exactly in 2 locations. Both locations will be
editing the files in both locations (i am aware of the issues associated
with editing the same file in both locations) and i would like to both
locations to hold a copy of the files.

Thanks for the input.
Graham



"Pegasus (MVP)" <I.can@fly.com> wrote in message
news:Ouk7DNgcHHA.984@TK2MSFTNGP04.phx.gbl...


Posted by Edwin vMierlo on March 29th, 2007


robocopy "c:\local" "\\server\target" /e /xo /r:10 /W:1 /np /eta
/log:c:\logfile.txt
robocopy \\server\target "c:\local" /e /xo /r:10 /W:1 /np /eta
/log+:c:\logfile.txt

experiment with the above syntax

yes, if the same document is edited in both places you will get a conflict,
e.g. you will end up with the file who is saved last... as the above synaxt
works on timestamps





"Graham Webber" <asl@noemail.noemail> wrote in message
news:e7dfLjgcHHA.4872@TK2MSFTNGP03.phx.gbl...



Similar Posts