Problem with --fil

Matt McCutchen matt at mattmccutchen.net
Mon May 4 19:24:10 GMT 2009


On Tue, 2009-05-05 at 00:26 +0530, Jignesh Shah wrote:
> Hi, I am using below command.
> 
> rsync  --verbose --log-file-format='%i %f %l %o %b'
> --log-file='/tmp/myfile'  src/  dest/
> 
> Though it is good that all the sync information contents will be
> redirected to /tmp/myfile, it would be useful if rsync could print at
> least below final statistics on stdout.
> 
> 2009/05/05 00:17:45 [26050] Number of files: 18
> [...]
> 2009/05/05 00:17:45 [26050] Total bytes received: 464
> 2009/05/05 00:17:45 [26050] sent 130 bytes  received 464 bytes  108.00
> bytes/sec
> 2009/05/05 00:17:45 [26050] total size is 9593706  speedup is 16151.02
> 
> 
> Could any one please let me know if it is possible to display these
> statistics on standard output. It would be fine if it also redirected
> or not to log-file.

Those lines are supposed to be controlled by the --stats option.  When I
ran your command (which does not have --stats), the stats didn't appear
in my log file, so I'm not sure how they got into yours; you might check
if you have two different rsyncs writing to the same log file.  In any
case, if you pass --stats, rsync should print the information to both
stdout and the log file.

-- 
Matt



More information about the rsync mailing list