Two Way sync between two remote sites

I have two sites in two different location, I am using Robocopy to sync the data between these two sites, I been using it for a month now and it is working perfect, but today I discovered that this utility is a one way sync tool. Which means, it only duplicate / mirror the source directory and folder into the destination, and not two way sync.
How I can make it two way sync, in other words I need to copy the files between the two sites and the program should always take the newer copy (they are in two different time zones GMT+2 and GMT-5)! How I can do that?

Who is Participating?
Shift-3Connect With a Mentor Commented:
What about running Robocopy twice -- once in each direction?  Use the /XO switch to exclude older files.

You can test it by using the /L switch until you're sure the results will be right.
Microsoft's SyncToy is a handy tool for this kind of thing.
nammariAuthor Commented:
I tried that, but it does not copy th e security attributes and it does not handle the slow network wan data transfer.
nammariAuthor Commented:
I used your script as well as SyncBackSE.. these two solve my problem
All Courses

From novice to tech pro — start learning today.