Easiest way to sync system time between two servers?
I have server A running a daily cron to sync its time using ntpd:
e.g.
ntpd -qg (it simply sets its time and then exits)
I would like to sync server B's system time to server A.
Specifically:
1. Server B is not connected to internet so it cannot sync with the same time servers as server A is doing
2. I would like to avoid perpetually running the ntpd service on server A as I feel this is overkill - I just want to update once a day and that's it.
So is it possible to write a simple script that updates server B's time to that of server A without having to run server B as a ntp client of server A and keep server A running as an ntpd server?
Thanks for helping me figure out if this is possible. Or, if anyone can think of a better idea to accomplish what I am looking for I would love to hear it.
Thanks
|