complete ntp rsync code