progress on screen with only stats in a log file

Wayne Davison wayned at samba.org
Sat Mar 27 13:03:23 MDT 2010


On Sat, Mar 27, 2010 at 8:29 AM, Andrei_r20 <andrei.rakov at gmail.com> wrote:

> Which combination of options/output redirection permits to display
> the progress (--progress) at the standard output and ONLY (no file listing)
> the stats (--stats) in a log file? If the stats are also displayed at
> the standard output, it's ok
>

Rsync doesn't separate log data like that, but you could write a script that
would work like that.  You could even use a pty, so that rsync continues to
ouptut using line buffering.  I've attached a simple perl script that does
that.

..wayne..
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.samba.org/pipermail/rsync/attachments/20100327/dc0fd7a1/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: myrsync
Type: application/octet-stream
Size: 702 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/rsync/attachments/20100327/dc0fd7a1/attachment.obj>


More information about the rsync mailing list