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

2009-05-08 Thread Jignesh Shah
Ohhh,,..Thanks Wayne...Got it..

Thanks,
Jignesh

On Thu, May 7, 2009 at 8:40 PM, Wayne Davison way...@samba.org wrote:

 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..

-- 
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html

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

2009-05-07 Thread Jignesh Shah
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
-- 
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html

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

2009-05-07 Thread Wayne Davison
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..
-- 
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html