rsync filename heuristics

Wayne Davison wayned at samba.org
Wed Jan 5 04:57:34 GMT 2005


On Wed, Jan 05, 2005 at 03:23:59PM +1100, Martin Pool wrote:
> On  5 Jan 2005, Rusty Russell <rusty at rustcorp.com.au> wrote:
> > On Tue, 2005-01-04 at 18:24 +0100, Robert Lemmen wrote:
> > > i read on some webpage about rsync and debian that you wrote a patch to
> > > rsync that let's it uses heuristics when deciding which local file to
> > > use. could you tell me whether this is planned to be included in a rsync
> > > release? could i have that patch?
> > 
> > Hmm, good question.  This is from 2.5.4, and can't remember how well it
> > worked.  Good luck!
> 
> I'm not the rsync maintainer anymore, but I think it would be cool if
> this were merged, if the current team feels OK about it.

The current version of the fuzzy.diff patch is in the "patches" dir (see
CVS or any recent tar file).  I mentioned earlier on the list that this
is one of the features that I'd like to see merged for the next release,
especially now that the generator tells the receiver when it resorts to
a non-default basis file (I disliked the duplicated fuzzy search in the
earlier patch).

However, I was thinking about improving it a bit more before finally
committing it:

  - It would be nice to make it not re-scan the current directory for
    each missing file.

  - Perhaps it should support finding a fuzzy match in a separate
    directory (or hierarchy) instead of just the missing file's
    current directory.

  - Perhaps also look into improving the fuzzy matching algorithm. E.g.
    it currently requires that the suffix be identical between the
    files, and for some things (such as logs, or backups, etc.) the
    suffix may be different.

So, the idea is one I also like, so I assume it will make it into the
next release.  Some folks have been using a patched version of rsync
2.6.3 with the released fuzzy.diff applied, so I know that the patch
is still in good shape if you'd like to try it out.

..wayne..


More information about the rsync mailing list