as said at the top of the file - I took rsync.rb as a template.