Fix rsync options (#13047)

Pull request for bug  #13047.