Re: an "intelligent" rsync script, dealing with renames
Tomasz Chmielewski <firstname.lastname@example.org> :[color=blue]
> Antony Lesuisse schrieb:[color=green]
> >This is a late reply to a thread of Tomasz Chmielewsk
> >He asked if some workaround existed for rename of big files.
> >I've made a script (python needed on both sides) that links the guessed
> >files in the right directory and uses the --fuzzy feature of rsync. It
> >is used to mirror a 100Gb archive where files are often renamed.
> >Maybe the algorithm could be included in the main rsync codebase. I
> >never understood why the --fuzzy feature was restricted to the same
> perhaps a short note how to use it would be helpful?[/color]
the usage is simple:
../rsyncpp.py [email]email@example.com[/email]in:/remote/dir/ localdir/
The first argument must be a remote host path, and the second must be a
local dir. Excludes are not possible. But you may add some options such
as -e 'ssh with options'.
The script is very small 100 lines, the tricky part is the remote python
code upload (line 26).
It uses find to locate all the files on both sides and link the guessed
files to the right local dir with a .fuzzy extention. Then call the real
To unsubscribe or change options: [url]https://lists.samba.org/mailman/listinfo/rsync[/url]
Before posting, read: [url]http://www.catb.org/~esr/faqs/smart-questions.html[/url]