correct function for calling rsync