Hi guys, can you help. I have looked all over the site and can not find the info I'm after. Perhaps I am missing something very obvious. I want to syncronise between 2 servers, I can not use NFS mount/share. So I have been looking at scp, rsync, rdist. Thing is, I want only the newer files to be present on both servers. They must be exactly the same both of them. Users can edit files on either server as this is controlled by a loadbalancer (I have no access to these). So if file A is updated on machine A, it must be present on machine B (only once a day a CRON will run the script). If however, a user updates file A on machine B, it must not be overwritten by machine A's update cycle. It should be a case of running a remote command on machine B from machine A, extracting the dates comparing the dates/time and if they are newer, then copy them, otherwise don't. Does anyone have any suggestions on the script or a built in switch using one of the existing commands. This is a UNIX Solaris 10 platform, there is no -P switch in rdist and I have the keys copied to each machine which will ensure no password prompt each time.
Any help would be greatly appreciated.