some rewrite for my rsync backup script