Need help with the rsync library and the communication protocol

Wayne Davison wayned at samba.org
Thu Jul 28 11:11:45 GMT 2005


On Thu, Jul 28, 2005 at 02:09:31AM +0200, matthias.christian at tiscali.de wrote:
> But the rsync source isn't beautiful or structured - it's just a big
> hunk of code.

Right -- it's a utility, not a library (though someone is working on
making it a library).  I'd recommend looking into the librsync project
instead, which implements the rsync algorithm in a way that can be used
by any program:

    http://librsync.sourceforge.net/

This will not allow you to build something that is wire-compatible with
rsync, though.

For an example file-transfer program that uses librsync, see the rZync
link on the above page (and keep in mind that was merely a test-bed, so
it's mainly useful for seeing how someone integrated librsync into an
rsync-like program).

..wayne..


More information about the rsync mailing list