"%h %a %u" string in --log-file-format doesn't work

Jignesh Shah jignesh.shah1980 at gmail.com
Thu May 7 11:12:28 GMT 2009


Hi,

I have been using --log-file-format and --log-file options in following way
in rsync-3.0.5

rsync -avz -ii --log-file-format='%h %a %m %u %i %f %l %o %b'
--log-file='/tmp/myfile'  /src /dest


It does't include the host name, IP address and authenticated user name and
instead it keep it as "%h %a %u". Could any one tell me what is wrong here?
Example output is given below:


2009/05/07 16:39:52 [14432] receiving file list
2009/05/07 16:39:52 [14432] created directory /dest/XXX
2009/05/07 16:39:52 [14438] %h %a  %u cd+++++++++ . 4096 recv 0
2009/05/07 16:39:57 [14438] %h %a  %u >f+++++++++ Sparc 2340668 recv 1006245
2009/05/07 16:40:02 [14438] %h %a  %u >f+++++++++ linux 2064479 recv 914074
2009/05/07 16:40:06 [14438] %h %a  %u >f+++++++++ x86 3 2161072 recv 961741
2009/05/07 16:40:07 [14438] Number of files: 4
2009/05/07 16:40:07 [14438] Number of files transferred: 3
2009/05/07 16:40:07 [14438] Total file size: 6566219 bytes
2009/05/07 16:40:07 [14438] Total transferred file size: 6566219 bytes
2009/05/07 16:40:07 [14438] Literal data: 6566219 bytes
2009/05/07 16:40:07 [14438] Matched data: 0 bytes
2009/05/07 16:40:07 [14438] File list size: 109
2009/05/07 16:40:07 [14438] File list generation time: 0.001 seconds
2009/05/07 16:40:07 [14438] File list transfer time: 0.000 seconds
2009/05/07 16:40:07 [14438] Total bytes sent: 170
2009/05/07 16:40:07 [14438] Total bytes received: 2882195
2009/05/07 16:40:07 [14438] sent 170 bytes  received 2882195 bytes
147813.59 bytes/sec
2009/05/07 16:40:07 [14438] total size is 6566219  speedup is 2.28

Thanks,
Jignesh
-------------- next part --------------
HTML attachment scrubbed and removed


More information about the rsync mailing list