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


DO NOT REPLY [Bug 6251] New: security: rsync executes remote commands

2009-04-07 Thread samba-bugs
https://bugzilla.samba.org/show_bug.cgi?id=6251

   Summary: security: rsync executes remote commands
   Product: rsync
   Version: 3.0.5
  Platform: x86
OS/Version: Linux
Status: NEW
  Severity: major
  Priority: P3
 Component: core
AssignedTo: way...@samba.org
ReportedBy: muel...@relog.ch
 QAContact: rsync...@samba.org


when a source file name listed on the rsync command line contains | or ; then
whatever comes after is executed as a command on the remote machine.

rsync somehost:/foobar\;date\/tmp/date .

(note the backslashes)

will fail and leave behind the file /tmp/date on the somehost. this can cause
serious trouble when file names can be picked by untrusted users.

the problem doesn't seem to occur when evil file names occur in a tree being
copied or when given as copy source.


-- 
Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the QA contact for the bug, or are watching the QA contact.
-- 
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


DO NOT REPLY [Bug 6251] security: rsync executes remote commands

2009-04-07 Thread samba-bugs
https://bugzilla.samba.org/show_bug.cgi?id=6251


way...@samba.org changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||INVALID




--- Comment #1 from way...@samba.org  2009-04-07 17:11 CST ---
This is not a security problem because for it to occur, the user needs to have
ssh access to the host, so you're already trusting them for that.  If you are
limiting what they can do via ssh, it is up to you to ensure that the command
they specified is safe, not rsync (since it is the shell that is processing
those characters -- rsync never sees them).


-- 
Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the QA contact for the bug, or are watching the QA contact.
-- 
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: Does rsync use md4 or md5?

2009-04-07 Thread Wayne Davison
On Mon, Apr 06, 2009 at 12:27:38PM +0200, David Depardoux wrote:
 I guess the man page is only a bit outdated?

Yeah -- thanks for pointing that out.  I've checked-in a fix to the
git repository.

..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: --times does not transfer full modification time

2009-04-07 Thread Wayne Davison
On Mon, Apr 06, 2009 at 12:28:50PM +0200, David Depardoux wrote:
 Thus, the milliseconds for files on the receiving side are all set to zero.

Correct.  Rsync does not (yet?) support sub-second timestamps.

..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: Invalid argument (22) Operation not supported (95) ???

2009-04-07 Thread henri
It looks like you are running a version of SE LINUX. Keep in mind that  
I have not run rsync any SE LINUX system.


However, on Mac OS X an error is reported when ACL's are not enabled  
on a destination partition. As such, you may want to check that ACL's  
are enabled on the destination volume.


Details for enabling ACL's on Mac OS X :
http://connect.homeunix.com/lbackup/access_control_lists

Also, depending upon your distribution, you may find that compiling  
the latest version of rsync for  will help?


Details for compiling rsync version 3 Mac OS X :
http://connect.homeunix.com/lbackup/developer/rsync_hfs

Again, I am not sure if this is the problem you are having. However, I  
strongly recommend that you confirm that ACL's are enabled on your  
systems destination partition(s).


Best of luck. I would be interested to know how you resolve this issue.





On 3/04/2009, at 11:24 PM, Morgan Read wrote:


Hi Folks

I've gone back over the list and the only reference I've found to
Invalid argument (22) is here:
http://lists.samba.org/archive/rsync/2006-May/015478.html

That seems a different context of character set mismatches.

The common parts to my errors are:
rsync: rsync_xal_set: lsetxattr(...,security.selinux) failed:
Invalid argument (22)
And:
rsync: rsync_xal_set: lsetxattr(...,user.Beagle) failed: Operation
not supported (95)

Where ... is some reference to a file relative to the source.  Seems  
to

be a selinux issue on the former and a beagle issue on the latter.

Any ideas what's going on?

Thanks
--
Getting errors: There are problems with the signature (or similar)?
Update your system by installing certificates from CAcert Inc, see  
here:

http://wiki.cacert.org/wiki/BrowserClients?#head-259758ec5ba51c5205cfb179cf60e0b54d9e378b
Or, if Internet Explorer is your default browser, simply click this  
link:

http://www.cacert.org/index.php?id=17

Morgan Read
NEW ZEALAND
mailto:mstuffATreadDOTorgDOTnz

fedora + freedom; fact || fiction?
http://fedoraproject.org/wiki/Overview
get freed-ora!
http://www.fsfla.org/svnwiki/selibre/linux-libre/freed-ora
--
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


DO NOT REPLY [Bug 6251] security: rsync executes remote commands

2009-04-07 Thread samba-bugs
https://bugzilla.samba.org/show_bug.cgi?id=6251





--- Comment #2 from m...@mattmccutchen.net  2009-04-07 19:22 CST ---
I think Urban is talking about a script that runs an rsync-over-ssh client on
behalf of an untrusted caller, in which case the ability to run arbitrary
remote commands would be a vulnerability in the script.  Urban, to prevent the
command execution, you can add --protect-args to the script.  Then rsync won't
pass the filenames through the remote shell, but the remote rsync will expand
globs itself.  If you don't even want globbing, use --files-from and perhaps
--from0.  I don't think a change to rsync is needed.


-- 
Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the QA contact for the bug, or are watching the QA contact.
-- 
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

[SCM] The rsync repository. branch, b3.0.x, updated. v3.0.5-26-g8e2771a

2009-04-07 Thread rsync-cvs
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project The rsync repository..

The branch, b3.0.x has been updated
   via  8e2771aa6e1fe242c0ad2919d2721e800d505d8e (commit)
  from  386f22cec6dbb375490eaca187486557fadda48b (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -
commit 8e2771aa6e1fe242c0ad2919d2721e800d505d8e
Author: Wayne Davison way...@samba.org
Date:   Tue Apr 7 07:32:35 2009 -0700

Some improvements to the rsync.yo manpage:
- Mention the switch from MD4 to MD5.
- Mention the default for the --log-file-format option.

---

Summary of changes:
 rsync.yo |   12 +---
 1 files changed, 9 insertions(+), 3 deletions(-)


hooks/post-receive
--
The rsync repository.
___
rsync-cvs mailing list
rsync-cvs@lists.samba.org
https://lists.samba.org/mailman/listinfo/rsync-cvs


[SCM] The rsync repository. branch, master, updated. v3.0.3-172-ge129500

2009-04-07 Thread rsync-cvs
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project The rsync repository..

The branch, master has been updated
   via  e129500c859646cb4685ad35404be0ff4ba668fd (commit)
  from  7fc2ca2551088823f4600264a3ce7fa7360d737e (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -
commit e129500c859646cb4685ad35404be0ff4ba668fd
Author: Wayne Davison way...@samba.org
Date:   Tue Apr 7 07:32:35 2009 -0700

Some improvements to the rsync.yo manpage:
- Mention the switch from MD4 to MD5.
- Mention the default for the --log-file-format option.

---

Summary of changes:
 rsync.yo |   12 +---
 1 files changed, 9 insertions(+), 3 deletions(-)


hooks/post-receive
--
The rsync repository.
___
rsync-cvs mailing list
rsync-cvs@lists.samba.org
https://lists.samba.org/mailman/listinfo/rsync-cvs