Refactors rsync and gets the source files too.