4 ms·
I use similar solution: my own shell script with inotify + timeout + unison over ssh. Unison is much better suited for two-way synchronization than rsync.
by mynegation 11y ago
I use similar solution: my own shell script with inotify + timeout + unison over ssh. Unison is much better suited for two-way synchronization than rsync.
- foxcub 11y agoI love unison, but how do you use it with inotify?
- skrause 11y agoNewer versions of Unison (since around 2012) can watch directories with inotify: http://blog.nguyenvq.com/blog/2011/07/18/real-time-file-synchronization-like-dropbox-via-unison/ http://blog.nguyenvq.com/blog/2011/07/18/real-time-file-sync...
- larrys 11y agoFor http://www.cis.upenn.edu/~bcpierce/unison/ http://www.cis.upenn.edu/~bcpierce/unison/ your thoughts on why that is better than using rsync ? Edit: I am now noticing this tool isn't even maintained anymore.
- vbernat 11y agoA new version has been released this year. unison works remarkably well, it's understandable there is not much to add.
- mynegation 11y agoFrom https://alliance.seas.upenn.edu/~bcpierce/wiki/index.php?n=Main.UnisonFAQGeneral https://alliance.seas.upenn.edu/~bcpierce/wiki/index.php?n=M... "Rsync is a mirroring tool; Unison is a synchronizer. That is, rsync needs to be told "this replica contains the true versions of all the files; please make the other replica look exactly the same." Unison is capable of recognizing updates in both replicas and deciding which way they should be propagated."
- rsync 11y agoLarry - would you please email us at info@rsync.net ? We have a few items to discuss with you ... (your profile mentions to respond to one of your comments if someone needs to reach you ...)
- larrys 11y agoThanks - I will but not just yet (a few reasons for that actually).
- beagle3 11y agoDon't know if this is still the case, but in the past, unison was extremely picky about the versions at both ends; I stopped using it when I upgraded my Ubuntu box and as a result I needed to either recompile an older version for the new box or upgrade the version on all other boxes (across windows and various distros). I now use rsync for bidirectional mirroring (any two versions from the last 15 years or so can talk to each other), git for synchronization (getting history for the price of needing to add/commit). Can't beat the network efficiency and compatibility of these two.