3 ms·
> The sync heavy lifting in Dropbox is handled by librsync, or at least was at one point. Nope, highly custom process that involves librsync very little. The
by jamwt 12y ago
> The sync heavy lifting in Dropbox is handled by librsync, or at least was at one point.
Nope, highly custom process that involves librsync very little. The sophistication of what has to be done to solve this problem well would probably surprise you.
- general_failure 12y agoYeah, rsync != bidirectional sync.
- rakoo 12y agoHe wasn't talking about rsync the binary but rather about librsync [0], the library that allows you to calculate a diff between two byte arrays without needing the cooperation of the other side -- ie you can calculate an efficient delta to send to remote without needing remote to be online at the moment you calculate, and without needing the complete old version, only a signature of it. A good example use of it is the rdiff tool that allows you to do exactly what I said before. A better real-world example would be duplicity [1] or rdiff-backup [2] that use librsync to de-duplicate backups, without needing access to the whole previous value, only a small signature of it. [0] https://github.com/librsync/librsync https://github.com/librsync/librsync [1] http://www.nongnu.org/duplicity/ http://www.nongnu.org/duplicity/ [2] http://www.nongnu.org/rdiff-backup/ http://www.nongnu.org/rdiff-backup/
- stephenr 12y agoIsn't the desktop sync client built around the csync tool? http://www.csync.org http://www.csync.org