rewrite backu-rsync with ruby