User NONE using rsync in Windows server

2004-11-23 Thread enric_navarro

Hi,
I'm using rsync with cygwin to synchronize
two windows servers. I've got files in server side with full permisions
to Administrator user, but when i synchronize it with another windows server,
the file placed in client side has a new group called NONE with read ,
write and execute permisions. I'm using the following line to call rsync:

rsync -zvvvr  --perms --owner
--group --progress --delete --size-only --owner [EMAIL PROTECTED]::test_synchro
C:\test

And this configuration in server side:

use chroot = false
strict modes = false
hosts allow = *
log file = rsyncd.log
pid file = rsyncd.pid

# Module definitions
# Make sure that writable modules
are implemented as subdirectories of cwRsync installation
# directory\data. That would
ensure propagation of correct ownership for files/directories.
#


[test_synchro]
path = D:\test
read >
transfer logging = yes
comment = test to mayas01 from picture
(wwwroot\PICTURES)



Does anyone know how i might fix this
error?
Thanks in advance-- 
To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html

Re: User NONE using rsync in Windows server

2004-11-23 Thread tevfik
Hi,

Probably you don't have environment variable CYGWIN=nontsec defined
somewhere in your system. By default, cygwin TRIES to map unix permissions
to windows acls and updates permissions accordingly. This may work and
make sense to some extent, if you have a full-blown cygwin environment and
always use it. Mostly this is not the case.

I recommend to use CYGWIN=nontsec when running rsync, to make sure that
cygwin does not disturb your windows permissions.

See http://www.itefix.no/phpws/index.php?module=faqFAQ_op=viewFAQ_id=12
for more info.

Rgrds Tev

cwRsync maintainer

 Hi,
 I'm using rsync with cygwin to synchronize two windows servers. I've got
 files in server side with full permisions to Administrator user, but when
 i synchronize it with another windows server, the file placed in client
 side has a new group called NONE with read , write and execute permisions.
 I'm using the following line to call rsync:

 rsync -zvvvr   --perms --owner --group --progress --delete --size-only
 --owner [EMAIL PROTECTED]::test_synchro C:\test

 And this configuration in server side:

 use chroot = false
 strict modes = false
 hosts allow = *
 log file = rsyncd.log
 pid file = rsyncd.pid

 # Module definitions
 # Make sure that writable modules are implemented as subdirectories of
 cwRsync installation
 # directory\data. That would ensure propagation of correct ownership for
 files/directories.
 #


 [test_synchro]
 path = D:\test
 read only = false
 transfer logging = yes
 comment = test to mayas01 from picture (wwwroot\PICTURES)



 Does anyone know how i might fix this error?
 Thanks in advance--
 To unsubscribe or change options:
 http://lists.samba.org/mailman/listinfo/rsync
 Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html

-- 
To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html


patch for replacing non-printable chars in filenames

2004-11-23 Thread Paul Slootman
There's a bug reported in Debian about the tty being screwed up by wierd
filenames, see http://bugs.debian.org/bug=242300

On the one hand, find will also do this. On the other hand, ls will
replace such chars with a question mark. Upon inspection, it appears to
be fairly simple to also do this in rsync (in the rwrite() function).

Here's a patch. Opinions? Perhaps don't do it unconditionally, i.e.
offer some way to turn it off?

Paul Slootman

--- log.c.orig  2004-10-04 11:51:37.0 +0200
+++ log.c   2004-11-23 17:27:29.0 +0100
@@ -180,6 +180,15 @@
 
buf[len] = 0;
 
+if (code == FINFO) {
+/* Replace non-printing chars in the string, most probably due to
+ * wierd filenames. Skip the first and last chars, they may be \n 
*/
+int i;
+for (i=1; ilen-1; i++)
+if (!isprint(buf[i]))
+buf[i] = '?';
+}
+
if (am_server  msg_fd_out = 0) {
/* Pass the message to our sibling. */
send_msg((enum msgcode)code, buf, len);
-- 
To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html


Re: patch for replacing non-printable chars in filenames

2004-11-23 Thread Wayne Davison
On Tue, Nov 23, 2004 at 05:29:57PM +0100, Paul Slootman wrote:
 Here's a patch. Opinions?

I think that a better place to munge the name would be in the
safe_fname() routine in utils.c (which already munges newlines
characters into question marks).  The reason I didn't change
any other characters was because I feared that it would mangle
foreign filenames that use high-bit characters.  I'd want some
feedback from such users before accepting such a patch.

..wayne..
-- 
To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html


Re: patch for replacing non-printable chars in filenames

2004-11-23 Thread Dmitry V. Levin
Hi,

On Tue, Nov 23, 2004 at 05:29:57PM +0100, Paul Slootman wrote:
 There's a bug reported in Debian about the tty being screwed up by wierd
 filenames, see http://bugs.debian.org/bug=242300
 
 On the one hand, find will also do this. On the other hand, ls will
 replace such chars with a question mark. Upon inspection, it appears to
 be fairly simple to also do this in rsync (in the rwrite() function).

1. find's output is mostly for another program's input, not for tty.
2. ls does --hide-control-chars by default only if isatty (STDOUT_FILENO).

 Here's a patch. Opinions? Perhaps don't do it unconditionally, i.e.
 offer some way to turn it off?

I'd make it like ls, i.e. when descriptor is a tty; also I'd add some
option to enforce --hide-control-chars also for non-tty.


-- 
ldv


pgpQQas3RA4cg.pgp
Description: PGP signature
-- 
To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html

Copying from one networked filesystem to another

2004-11-23 Thread Dan Stromberg

What sorts of options might I give to rsync, to optimize transferring
data from one networked filesystem to another?

Transferring directly between the fileservers is not an option in this
case, for technical reasons.

What sorts of options (or system modifications) might I use to help
rsync get through a HUGE list of files?

We need to be able to add as well as remove files.

We've been using:

/usr/local/bin/rsync \
-a \
--whole-file \
--stats \
--progress \
--block-size $(expr 1024 \* 1024) . $dst

Thanks!


-- 
To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html


Re: Copying from one networked filesystem to another

2004-11-23 Thread Dan Stromberg
On Tue, 2004-11-23 at 15:00 -0800, Dan Stromberg wrote:
 What sorts of options might I give to rsync, to optimize transferring
 data from one networked filesystem to another?
 
 Transferring directly between the fileservers is not an option in this
 case, for technical reasons.
 
 What sorts of options (or system modifications) might I use to help
 rsync get through a HUGE list of files?
 
 We need to be able to add as well as remove files.
 
 We've been using:
 
 /usr/local/bin/rsync \
 -a \
 --whole-file \
 --stats \
 --progress \
 --block-size $(expr 1024 \* 1024) . $dst
 
 Thanks!
 
 

I probably should add some hardware specs:

The networked filesystem clients are 4 CPU, 2790MHz Xeons.

The network between all 3 links (two networked filesystems, one rsync)
is gigabit ethernet, with jumbo frames enabled.

The source filesystem is considerably slower than the destination
filesystem, but I have not quantified to what extent.

Thanks again!


-- 
To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html