Writing a service to keep two folder in sync?

2019-02-17 13:54发布

问题:

I need to keep synchronized two folder on different host in Windows. I really think that something already done exists but I did not find anything (SyncToys is not an option), do you have something to suggest me?

Requirements are:

  • running as a service
  • sync over a network shared path (ie \\myhost\myfolder)

回答1:

I would say use rsync with task scheduler to accomplish what you're wanting.

There are several ports of rsync to windows, you might check out the following:

  • DeltaCopy
  • cwrsync


回答2:

After a long search, I found SuperFlexible. Maybe that's the answer - and it doesn't cost much.



回答3:

Real Time Folder Synchronization Window Service

http://www.codeproject.com/Articles/35632/Real-Time-Folder-Synchronization-Window-Service

Code source http://www.codeproject.com/KB/files/FileSync/FileSyncService_source.zip