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
On Thu, May 07, 2009 at 04:42:28PM +0530, Jignesh Shah wrote:> 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?You aren't doing a daemon copy, which is the only time those values are currently defined. I'm considering enhancing %a and %h to derive the IP from the environment when possible (like daemon-mode over remote-shell currently does). That would let someone do normal (non-daemon), ssh copies and still get an IP+hostname put into the log file. ..wayne..