-1

I am searching for a solution how to keep sync two folders, in same machine. It can be something very simple. But it must always keep the last changes files, on all folders.

I am thought maybe it can be done using bat files, but I didn't found yet a solution.

There is no, source or destinatin all the folders are sources, and destination. I want it to always keep the last modified version.

(It must to not be symbolic link, or junction, or else, because git broke them in checkouts...)

I have read: How do I synchronise two folders in real-time in Windows 7?

But the software there are not stand exactly with the requiments I need.

Thank you

1 Answers1

0

Found a solution. Without installing anything. Just need to create a schedule task, than run every 10 minutes.

For each folder I am dong that:

robocopy folder1  folder2  /r:1 /w:2 /xo
robocopy folder2  folder1 /r:1 /w:2 /xo

robocopy folder1  folder3  /r:1 /w:2 /xo
robocopy folder1  folder4  /r:1 /w:2 /xo

This is make all folders to contain the last modification files.

  • /xo - Do not overwrite old files over new files.
  • /r:1 /w:s - Repeat only one time (and wait 2 seconds, before retried)