Hi all,
Using:
Redhat ES4 U3 (local) to Redhat 7.3 (remote)
rsync version 2.6.3 protocol version 28 (local) to rsync version 2.5.4 protocol version 26 (remote)
OpenSSH_3.9p1 on both servers
I am attempting to execute the following rsync command on my local server as a cron job for the user "bob":
Code:
* * * * * /usr/bin/rsync -av /path/to/sourcefiles/ root@<remoteserver>:/path/to/synchedfiles/
However it just does not work - even though I have it running every minute. What's odd is that I can execute this file, as the user "bob", exactly as it is shown above, and it works fine:
Code:
[localserver bob]$ /usr/bin/rsync -av /path/to/sourcefiles/ root@<remoteserver>:/path/to/synchedfiles/
I'vr tried removing the verbosity - no joy. I have already generated SSH keys for the involved users so there should be no required user input and I have tested this at the command line. I believe that cron has it's own environment of sorts but I figured that using absolute paths would bypass that. I also tried placing the whole command in a script and having that as the executed cron job command but no joy.
Anyone know any workarounds? There are no mesages in any logs that are of any help
Cheers,
Jon