move rsync options into the function