Re: itemized option (-ii) with --log-file and --log-file format

2009-04-08 Thread Wayne Davison
On Wed, Apr 08, 2009 at 07:41:12AM +0530, Jignesh Shah wrote:
 No, I also want to log files that are not transferred.

You can use -vv instead of -ii to get a list of uptodate items, but no
mention of attribute changes (non-transferred files are all uptodate).
In rsync 3.1.0dev you can get that info without all the rest of the
verbosity items it implies by specifying --info=name2.

If that is not what you want, then you need the %i field so that rsync
can output what has changed (or not changed) for the current item.

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


Re: itemized option (-ii) with --log-file and --log-file format

2009-04-07 Thread Jignesh Shah
David, How could I use sed in rsync -av --stats -ii
--log-file-format='CONTENTS: %i %f %l %o %b' --log-file='/tmp/rsync-test'
src/ dest/  command. For that, i think I have to redirect output to stdout
using --out-format an needs to read it. but I want to redirect the desire
output directly to the file.

Thanks.

On Mon, Apr 6, 2009 at 12:24 PM, David Overton da...@overtons.id.au wrote:

 Pipe the output through sed?

 2009/4/6 Jignesh Shah jignesh.shah1...@gmail.com:
  Thanks Wayne for reply. I want to use log-file support only so that i
 need
  not to read stdout and put output into the file. I have to use -ii so
 that
  it print all the statistic info about what files/dirs synched and what
 are
  not. Please refer below output:
 
  with -i only.
  ---
 
  2009/04/06 10:38:41 [27475] building file list
  2009/04/06 10:38:41 [27475] sent 88 bytes  received 12 bytes  200.00
  bytes/sec
  2009/04/06 10:38:41 [27475] total size is 1003012  speedup is 10030.12
 
  with -ii
  -
 
  2009/03/31 15:15:17 [4537] building file list
  2009/03/31 15:15:29 [4537] created directory Mydocs1
  2009/03/31 15:15:29 [4537] CONTENTS: cd+ Mydocs/. 4096 send 0
  2009/03/31 15:15:29 [4537] CONTENTS: f+ Mydocs/1.pl 394 send 437
  2009/03/31 15:15:29 [4537] CONTENTS: f+ Mydocs/CHANGELOG.txt
 2588
  send 2631
  .
  .
 
  I want the output of -ii but dont want cryptic output in it (e.g.
  cd+ , f+ etc). If we remove it then it will become
 similar
  output as 2.6.* version output. Is it possible?
 
  Thanks,
  Jignesh
 
  On Thu, Apr 2, 2009 at 8:14 PM, Wayne Davison way...@samba.org wrote:
 
  On Wed, Apr 01, 2009 at 10:50:13AM +0530, Jignesh Shah wrote:
   I noticed that the output format for this command is different from
   rsync
   V2.6.* . Is there any way I can make this output similar to rsync
   V2.6.*?
 
  What difference are you referring to?  The use of send instead of recv
  for a local transfer?  That is a more accurate representation of what
  rsync is doing, but you can change it by forcing rsync to pull files
  from localhost.  See the support/lsh script for a way to pull from
  localhost w/o using a remote shell.  If that's not the issue, please
  elaborate.
 
  ..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.htmlhttp://www.catb.org/%7Eesr/faqs/smart-questions.html
 

-- 
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: itemized option (-ii) with --log-file and --log-file format

2009-04-07 Thread Wayne Davison
On Mon, Apr 06, 2009 at 10:45:42AM +0530, Jignesh Shah wrote:
 I have to use -ii so that it print all the statistic info about what
 files/dirs synched and what are not.

No, -ii will include unchanged files in the logs in addition to changed
files, and thus a %i field (the one with the cryptic characters) is
needed to distinguish the two.  The -i option also tells rsync to log
about files that have attribute changes (not just transferred files),
and the %i field is necessary to be able to distinguish if a file just
got tweaked or was transferred.

If you just want to log transferred files, don't specify -i at all, and
use your prior --log-file=FILE and --log-file-format=FORMAT options, but
leave out the %i parameter in the latter.

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


Re: itemized option (-ii) with --log-file and --log-file format

2009-04-07 Thread Jignesh Shah
If you just want to log transferred files,
No, I also want to log files that are not transferred.

Thanks,
Jignesh

On Tue, Apr 7, 2009 at 8:04 PM, Wayne Davison way...@samba.org wrote:

 On Mon, Apr 06, 2009 at 10:45:42AM +0530, Jignesh Shah wrote:
  I have to use -ii so that it print all the statistic info about what
  files/dirs synched and what are not.

 No, -ii will include unchanged files in the logs in addition to changed
 files, and thus a %i field (the one with the cryptic characters) is
 needed to distinguish the two.  The -i option also tells rsync to log
 about files that have attribute changes (not just transferred files),
 and the %i field is necessary to be able to distinguish if a file just
 got tweaked or was transferred.

 If you just want to log transferred files, don't specify -i at all, and
 use your prior --log-file=FILE and --log-file-format=FORMAT options, but
 leave out the %i parameter in the latter.

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

Re: itemized option (-ii) with --log-file and --log-file format

2009-04-06 Thread David Overton
Pipe the output through sed?

2009/4/6 Jignesh Shah jignesh.shah1...@gmail.com:
 Thanks Wayne for reply. I want to use log-file support only so that i need
 not to read stdout and put output into the file. I have to use -ii so that
 it print all the statistic info about what files/dirs synched and what are
 not. Please refer below output:

 with -i only.
 ---

 2009/04/06 10:38:41 [27475] building file list
 2009/04/06 10:38:41 [27475] sent 88 bytes  received 12 bytes  200.00
 bytes/sec
 2009/04/06 10:38:41 [27475] total size is 1003012  speedup is 10030.12

 with -ii
 -

 2009/03/31 15:15:17 [4537] building file list
 2009/03/31 15:15:29 [4537] created directory Mydocs1
 2009/03/31 15:15:29 [4537] CONTENTS: cd+ Mydocs/. 4096 send 0
 2009/03/31 15:15:29 [4537] CONTENTS: f+ Mydocs/1.pl 394 send 437
 2009/03/31 15:15:29 [4537] CONTENTS: f+ Mydocs/CHANGELOG.txt 2588
 send 2631
 .
 .

 I want the output of -ii but dont want cryptic output in it (e.g.
 cd+ , f+ etc). If we remove it then it will become similar
 output as 2.6.* version output. Is it possible?

 Thanks,
 Jignesh

 On Thu, Apr 2, 2009 at 8:14 PM, Wayne Davison way...@samba.org wrote:

 On Wed, Apr 01, 2009 at 10:50:13AM +0530, Jignesh Shah wrote:
  I noticed that the output format for this command is different from
  rsync
  V2.6.* . Is there any way I can make this output similar to rsync
  V2.6.*?

 What difference are you referring to?  The use of send instead of recv
 for a local transfer?  That is a more accurate representation of what
 rsync is doing, but you can change it by forcing rsync to pull files
 from localhost.  See the support/lsh script for a way to pull from
 localhost w/o using a remote shell.  If that's not the issue, please
 elaborate.

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

--
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: itemized option (-ii) with --log-file and --log-file format

2009-04-05 Thread Jignesh Shah
Thanks Wayne for reply. I want to use log-file support only so that i need
not to read stdout and put output into the file. I have to use -ii so that
it print all the statistic info about what files/dirs synched and what are
not. Please refer below output:

with -i only.
---

2009/04/06 10:38:41 [27475] building file list
2009/04/06 10:38:41 [27475] sent 88 bytes  received 12 bytes  200.00
bytes/sec
2009/04/06 10:38:41 [27475] total size is 1003012  speedup is 10030.12

with -ii
-

2009/03/31 15:15:17 [4537] building file list
2009/03/31 15:15:29 [4537] created directory Mydocs1
2009/03/31 15:15:29 [4537] CONTENTS: cd+ Mydocs/. 4096 send 0
2009/03/31 15:15:29 [4537] CONTENTS: f+ Mydocs/1.pl 394 send 437
2009/03/31 15:15:29 [4537] CONTENTS: f+ Mydocs/CHANGELOG.txt 2588
send 2631
.
.

I want the output of -ii but dont want cryptic output in it (e.g.
cd+ , f+ etc). If we remove it then it will become similar
output as 2.6.* version output. Is it possible?

Thanks,
Jignesh

On Thu, Apr 2, 2009 at 8:14 PM, Wayne Davison way...@samba.org wrote:

 On Wed, Apr 01, 2009 at 10:50:13AM +0530, Jignesh Shah wrote:
  I noticed that the output format for this command is different from rsync
  V2.6.* . Is there any way I can make this output similar to rsync V2.6.*?

 What difference are you referring to?  The use of send instead of recv
 for a local transfer?  That is a more accurate representation of what
 rsync is doing, but you can change it by forcing rsync to pull files
 from localhost.  See the support/lsh script for a way to pull from
 localhost w/o using a remote shell.  If that's not the issue, please
 elaborate.

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

Re: itemized option (-ii) with --log-file and --log-file format

2009-04-02 Thread Wayne Davison
On Wed, Apr 01, 2009 at 10:50:13AM +0530, Jignesh Shah wrote:
 I noticed that the output format for this command is different from rsync
 V2.6.* . Is there any way I can make this output similar to rsync V2.6.*?

What difference are you referring to?  The use of send instead of recv
for a local transfer?  That is a more accurate representation of what
rsync is doing, but you can change it by forcing rsync to pull files
from localhost.  See the support/lsh script for a way to pull from
localhost w/o using a remote shell.  If that's not the issue, please
elaborate.

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


itemized option (-ii) with --log-file and --log-file format

2009-03-31 Thread Jignesh Shah
Hi,

I am using rsync3.0.5 both side. I have been using below rsync command to
get the sync info.

rsync -av --stats -ii --log-file-format='CONTENTS: %i %f %l %o %b'
--log-file='/tmp/rsync-test' src/ dest/

I noticed that the output format for this command is different from rsync
V2.6.* . Is there any way I can make this output similar to rsync V2.6.*?

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