Logging from cron

T. Coutu coutu3 at CyberCraftCorp.com
Tue Mar 23 17:53:02 GMT 2004


Hello,

I've just spent several hours going over several Google searches trying to find a way to configure rsync to log into a file named "/var/log/rsync.log".  So far, every instance where I've found someone asking about rsync logging remained unanswered (which is kind of weird in itself).

As far as I can tell, the only way to do this is to setup rsync as a daemon process so that it will read an rsync.confg.  The problem is that I don't want to run rsync as a daemon process, and am not interested in working from a rsync.confg file if I can avoid it.  My rsync command lines are being generated on the fly by a perl program running via cron, and then shelling the command to the OS (linux) and handshaking via SSH.  This is working fine, but I need a log to determine what is causing rsync to shutdown before completing the full mirror of the server.

Does anyone have any suggestions as to how I can get a log generated from rsync running from the command line?

Many Thanks in Advance,
Tim





More information about the rsync mailing list