Cannot execute rsync as a cron job
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/ Code:
[localserver bob]$ /usr/bin/rsync -av /path/to/sourcefiles/ root@<remoteserver>:/path/to/synchedfiles/ Anyone know any workarounds? There are no mesages in any logs that are of any help :) Cheers, Jon |
Maybe you could redirect the standard error to a file, then take a look at that and find out what the problem is that way?
Code:
* * * * * /usr/bin/rsync -av /path/to/sourcefiles/ root@<remoteserver>:/path/to/synchedfiles/ 2> myerrorlog |
Quote:
Thanks for the tip! I did this (I actually outputted to stdout and stderr) and, bizarrely, while the output files contaned 0 bytes, the files themselves (the ones to be rsync'ed) are now getting synched properly... Must be user error ;) Thanks again |
All times are GMT -5. The time now is 06:57 AM. |