add rsync code for repo