Logging from cron

Tim rsync at CyberCraftCorp.com
Tue Mar 23 18:21:26 GMT 2004


Thanks Brian.  :-)

Tim

*********** REPLY SEPARATOR  ***********

On 3/23/2004 at 1:00 PM Brian Cuttler wrote:

>We always run rsync from a shell script, sometimes we pipe the
>shell script output to mailx or such. I'm sure you can write
>it to a log file but don't recall the syntax off hand.
>
>We never run the single command as a cron task, ie never
> 0 23 * * 1-5 rsync
>but do
> 0 23 * * 1-5 script1.sh
>
>
>I'm sure a number of the OS provided root cron jobs do so.
>
>[Charset KOI8-R unsupported, filtering to ASCII...]
>> 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
>> 
>> 
>> 
>> -- 
>> To unsubscribe or change options:
>http://lists.samba.org/mailman/listinfo/rsync
>> Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html
>>





More information about the rsync mailing list