I fixed a bug and cleaned up some clunky bash, so use this:- http://paste.kde.org/587864/51779286/
It's half way there :) From ~/cronsync_error.log :-01/11/2012-14:05: Only 79199/141855 files in rsync://distrib-coffee.ipsl.jussieu.fr:/pub/linux/Mageia/distrib