On 20/03/07, Shachar Shemesh <[EMAIL PROTECTED]> wrote:
Amos Shapira wrote: > On 20/03/07, *Ez-Aton* <[EMAIL PROTECTED] > <mailto:[EMAIL PROTECTED]>> wrote: > > > However, how does rsync handle binary changed files? Can it copy > only the binary diff, or must it copy the entire file all over? > > > rsync works by comparing md5 hashes of individual file blocks and > copying the blocks which have different hash values, Well, that's a really simplified explanation, but so be it :-)
As long as it's not wrong, isn't it?
nothing to do with textual diff. That, at least, is accurate. > (imagine - all the major mirror sites use rsync to get updates from > the main sites - these are virtually never text files). And rarely enjoy the benefits from rsync either, but, again, so be it :-)
I'd guess so, since virtually all of the files they transfer are new instead of changed files, but see, for instance, http://www.debian.org/mirror/ftpmirror#how: The recommended method of mirroring is with the so called anonftpsync<http://www.debian.org/mirror/anonftpsync>script via anonymous rsync <http://packages.debian.org/stable/net/rsync>. Note: while wget and other ftp-tools seem to work well, there are some issues. We strongly recommend to use rsync. Anyone care to explain why is that? --Amos
