C
C
client242015-12-25 14:18:43
.NET
client24, 2015-12-25 14:18:43

What is the best way to sync two folders?

there is a folder on the server and there is a folder on the client
, you need to synchronize them,
how best to do it?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
I
Ivan Arxont, 2015-12-27
@arxont

I did the following - we write a service that uses FileSystemWatcher , subscribe to the Changed event in it , copy it to the right place when it occurs. But this method is valid if they can only work with one copy at a time. Otherwise, it's quite difficult to work with conflicts and their "resolving"
PS: If the file is large, then you can copy only the changed part, but this is already much more difficult.
PS2: It's really easier and better to use a ready-made solution - writing your own bike is rather dreary.

M
MonkAlex, 2015-12-25
@MonkAlex

Install some Dropbox, Yandex Disk, GoogleDrive.
Fast, cheap, no bikes.
If cloud technologies are not needed, then just rsync.

V
Vladimir Bryzgalov, 2015-12-25
@VladimirBryzgalov

Another option is btsync. Able to work in a local network and there are native clients for all popular systems.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question