On 22 Apr 2002, dennis <zenn@optushome.com.au>
wrote:> Hi all...
>
> Sorry if this has been covered before, I'm new to the list and
couldn't find anything in the archives.
> Aside from the authentication issues, is it possible to run a rsync
> cronjob from a local box that sync's two remotes boxes ?
Not as such; you can get pretty close though.
Just ssh to the first box, and run rsync from there to the second:
ssh -A host1 rsync -ave ssh ~/work otherhost:/backup/
Or, indeed, put the tail end of that command directly into the cron
job on either box.
> I have worked out the authentication issues with SSH so all that's
> left is rsync's ability to sync two remote systems from a local
> cronjob on a third.
--
Martin