On Wed, Sep 20, 2000 at 07:12:33PM -0600, Eric Whiting wrote:
> I understand the log option for the rsyncd deamon.
>
> log file
>
> What I want to do is log from the rsync command (not deamon) to a
> file. So far all I can get is my log format string written to stdout.
> How to I tell the rsync command to log to a file?
>
> I'd like this command to make a logifle in /tmp but it only writes the
> info to stdout.
> Is there a flag I'm missing? BTW I can't get all the % strings to work
> quite right in the command rsync but I get most of the important ones.
>
> Thanks,
> eric
>
> SAMPLE COMMAND:
>
> rsync -a --log /tmp/logfile --log-format "%o %f %l %b" /bin /tmp
Just redirect stdout:
rsync -a --log-format "%o %f %l %b" /bin /tmp >>/tmp/logfile
--
Martin Pool, Linuxcare, Inc.
+61 2 6262 8990
[EMAIL PROTECTED], http://www.linuxcare.com/
Linuxcare. Support for the revolution.
PGP signature