SearchFAQMemberlist Log in
Reply to topic Page 1 of 1
rsynd with workgroup / file permission
Author Message
Post rsynd with workgroup / file permission 
Hi,

On Mon, 2004-04-19 at 18:23, Andy E wrote:
Hello,

I downloaded rsync 2.6.0 soruce & 2.6.0-1 patch (from cygwin mirrors)
applied the "-1" patch, the backuppc patch from sourceforge, and then
manually patched from
http://www.mail-archive.com/rsync < at > lists.samba.org/msg06792.html

This produces a fixed-csumseed static-umask/chmod-capable
rsync binary. The result being I can create files in any mode I wish.
This satisfies the requirements of the task I was discussing here.
Cygwin in a XP workgroup doesn't want to work as a rsyncd service
in a friendly way. Cygwin acknowleges this as it is really a windows
integration issue where workgroups just aren't real clever about
rights, certainly in comparison to domains.

I can buid a diff if anyone is interested or make the binary I built
available for download. Hopefully it is stable, and I'll continue to
use it (this is day one of the hack).

Thanks for the tips, Craig. Nice work with backuppc altogether.
Kudos for your efforts.

- Andy


I've got the same problem as you do with the Windows XP restores Sad
Could you please make your binary available?

Thanks!

Regards,

--
Guus Houtzager Email: guus < at > houtzager.net
PGP fingerprint = 5E E6 96 35 F0 64 34 14 CC 03 2B 36 71 FB 4B 5D
"A)bort, R)etry, I)nfluence with large hammer."





-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g.
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
_______________________________________________
BackupPC-users mailing list
BackupPC-users < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/

Post rsynd with workgroup / file permission 
Hello, I'm working on getting rsync-2.6.2 working with the variable fixed-checksums as well as the forced umask/mode patch. I was gettting near to finishing over the weekend. I will keep you posted. It's a worthwhile effort because I know it will be used here as well as by others. - Andy --- On Mon 05/03, Guus Houtzager < guus < at > houtzager.net > wrote: From: Guus Houtzager [mailto: guus < at > houtzager.net] To: backuppc-users < at > lists.sourceforge.net Date: Mon, 03 May 2004 17:03:57 +0200 Subject: Re: [BackupPC-users] rsynd with workgroup / file permission Hi,

On Mon, 2004-04-19 at 18:23, Andy E wrote:
Hello,

I downloaded rsync 2.6.0 soruce & 2.6.0-1 patch (from cygwin mirrors)
applied the "-1" patch, the backuppc patch from sourceforge, and then
manually patched from
http://www.mail-archive.com/rsync < at > lists.samba.org/msg06792.html

This produces a fixed-csumseed static-umask/chmod-capable
rsync binary. The result being I can create files in any mode I wish.
This satisfies the requirements of the task I was discussing here.
Cygwin in a XP workgroup doesn't want to work as a rsyncd service
in a friendly way. Cygwin acknowleges this as it is really a windows
integration issue where workgroups just aren't real clever about
rights, certainly in comparison to domains.

I can buid a diff if anyone is interested or make the binary I built
available for download. Hopefully it is stable, and I'll continue to
use it (this is day one of the h ack).

Thanks for the tips, Craig. Nice work with backuppc altogether.
Kudos for your efforts.

- Andy


I've got the same problem as you do with the Windows XP restores Sad
Could you please make your binary available?

Thanks!

Regards,

--
Guus Houtzager Email: guus < at > houtzager.net
PGP fingerprint = 5E E6 96 35 F0 64 34 14 CC 03 2B 36 71 FB 4B 5D
"A)bort, R)etry, I)nfluence with large hammer."





-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g.
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
_______________________________________________
BackupPC-users mailing list
BackupPC-users < at > lists.sourceforge.net
https://lists.sourceforge.net/list s/listinfo/backuppc-users
http://backuppc.sourceforge.net/

Join Excite! - http://www.excite.com
The most personalized portal on the Web!

Post rsynd with workgroup / file permission 
I did get your --checksum-seed=NUM in just fine, however in
testing, the distribution's chmod patch remains a problem
when applied to cygwin in these environments (workgroup). It
just doesn't do anything. I think then that this is
demonstrating that the problem is with chmod as the standard
rsync chmod is failing also. The older umask/chmod patch took
a different approach and does work (in older versions). Maybe
I'll try to get more testing in with just umask, and then
just chmod, to try to pin it down more precisely. I haven't
taken the issue onto the rsync list yet as I haven't got it
well defined enough - yet. As time allows I will continue to
work on it and try to improve the whole situation. The port
of the umask patch was not so pretty as the application of
the chmod patch with the distribution, of course. Things have
changed a bit in there since last year.

Andy --- On Tue 05/04, Craig Barratt < cbarratt < at > users.sourceforge.net > wrote: From: Craig Barratt [mailto: cbarratt < at > users.sourceforge.net] To: endocrantz < at > excite.com Cc: backuppc-users < at > lists.sourceforge.net Date: Tue, 04 May 2004 07:40:52 -0700 Subject: Re: [BackupPC-users] rsynd with workgroup / file permission On Mon, 2004-04-19 at 18:23, Andy E wrote:

I downloaded rsync 2.6.0 soruce & 2.6.0-1 patch (from cygwin mirrors)
applied the "-1" patch, the backuppc patch from sourceforge, and then
manually patched from

http://www.mail-archive.com/rsync < at > lists.samba.org/msg06792.html

This produces a fixed-csumseed static-umask/chmod-capable
rsync binary. The result being I can create files in any mode I wish.
This satisfies the requirements of the task I was discussing here.
Cygwin in a XP workgroup doesn't want to work as a rsyncd service
in a friendly way. Cygwin acknowleges this as it is really a windows
integration issue where workgroups just aren't real clever about
rights, certainly in comparison to domains.

I can buid a diff if anyone is interested or make the binary I built
available for download. Hopefully it is stable, and I'll continue to
use it (this is day one of the hack).

Thanks for the tips, Craig. Nice work with backuppc altogether.
Kudos for your efforts.

FYI, I have decided to change the --fixed-csumseed option to
--checksum-seed=NUM option. I'm attaching an email I sent to
the rsync mail list a few days ago.

Also, rsync 2.6.2 contains an optional patch in patches/chmod-option.diff.
Will this alternative work instead of the patch above? The reason I
suggest this is that the patches included with rsync are "close" to
becoming standard features.

I'll put a new rsync 2.6.2 with the --checksum-seed=NUM patch and one of
the chmod patches, plus the latest cygwin1.dll, on backups.sf.net soon.

Craig

#######################################################################
To: jw schultz
From: Craig Barratt
Cc: rsync < at > lists.samba.org
Date: Sat, 01 May 2004 17:06:10 -0700
Subj: Re: setting checksum_seed

jw schultz writes:

There was some talk last year about adding a --fixed-checksum-seed
option, but no consensus was reached. It shouldn't hurt to make the
seed value constant for certain applications, though, so you can feel
free to proceed in that direction for what you're doing for your client.

FYI, I just checked in some changes to the checksum_seed code that will
make it easier to have other options (besides the batch ones) specify
that a constant seed value is needed.

I would really like a --fixed-csumseed option become a standard
feature in rsync. Just using the batch value (32761) is fine.
Can I contribute a patch? The reason I want this is the next
release of BackupPC will support rsync checksum caching, so that
backups don't need to recompute block or file checksums. This
requires a fixed checksum seed on the remote rsync, hence the
need for --fixed-csumseed. I've included this feature in a
pre-built rsync for cygwin that I include on the SourceForge
BackupPC downloads.

1. Yes, you may contribute a patch. I favor the idea of
being able to supply a checksum seed.

2. Lets get the option name down to a more reasonable
length. --checksum-seed should be sufficient.

I submitted a patch in Feb 2004 to add a --fixedcsum-seed option
(which only sets checksum_seed to 32761, the batch file value):

http://lists.samba.org/archive/rsync/2004-February/008616.html

Earlier, I submitted a patch (against 2.5.6pre1 in Jan 2003)
for --checksum-seed=NUM:

http://lists.samba.org/archive/rsync/2003-January/004845.html

Since I posted both of these patches, there was an interesting thread
started by Eran Tromer about potential block checksum collisions that
could be exploited by someone to trigger first-pass failures. See:

http://lists.samba.org/archive/rsync/2004-March/008821.html

The consequence is just a performance penalty, since with very
high probabi lity the whole-file checksum fails, triggering the
second pass with the full checksum size, which will succeed.
Eran recommended that checksum_seed be more random than time().


Join Excite! - http://www.excite.com
The most personalized portal on the Web!

Post rsynd with workgroup / file permission 
A zipped binary of this compilation is at:
http://www.seawall.com/rsync.zip
New arguments for $Conf{RsyncArgs}

--checksum-seed=NUM

And for

$Conf{RsyncRestoreArgs}
--checksum-seed=NUM
--chmod=Dugo+rwx,Fugo+rw
or
--chmod=Do+s,ugo+w,Fo+w,+X
for example. D=directory, F=file, each
apppended with chmod options.

Just in case someone wants to try, it passes
"make test" and works as well as any other
in my brief experienceswith it.

Andy
--- On Tue 05/04, Andy Evans < endocrantz < at > excite.com > wrote:
From: Andy Evans [mailto: endocrantz < at > excite.com]
To: cbarratt < at > users.sourceforge.net, endocrantz < at > excite.com
Cc: backuppc-users < at > lists.sourceforge.net
Date: Tue, 4 May 2004 20:54:56 -0400 (EDT)
Subject: Re: [BackupPC-users] rsynd with workgroup / file permission


I did get your --checksum-seed=NUM in just fine, however in
testing, the distribution's chmod patch remains a problem
when applied to cygwin in these environments (workgroup). It
just doesn't do anything. I think then that this is
demonstrating that the problem is with chmod as the standard
rsync chmod is failing also. The older umask/chmod patch took
a different approach and does work (in older versions). Maybe
I'll try to get more testing in with just umask, and then
just chmod, to try to pin it down more precisely. I haven't
taken the issue onto the rsync list yet as I haven't got it
well defined enough - yet. As time allows I will continue to
work on it and try to improve the whole situation. The port
of the umask patch was not so pretty as the application of
the chmod patch with the distribution, of course. Things have
changed a bit in there since last year.



Andy

--- On Tue 05/04, Craig Barratt < cbarratt < at > users.sourceforge.net > wrote:
From: Craig Barratt [mailto: cbarratt < at > users.sourceforge.net]
To: endocrantz < at > excite.com
Cc: backuppc-users < at > lists.sourceforge.net
Date: Tue, 04 May 2004 07:40:52 -0700
Subject: Re: [BackupPC-users] rsynd with workgroup / file permission

On Mon, 2004-04-19 at 18:23, Andy E wrote:

I downloaded rsync 2.6.0 soruce & 2.6.0-1 patch (from cygwin mirrors)
applied the "-1" patch, the backuppc patch from sourceforge, and then
manually patched from

http://www.mail-archive.com/rsync < at > lists.samba.org/msg06792.html

This produces a fixed-csumseed static-umask/chmod-capable
rsync binary. The result being I can create files in any mode I wish.
This satisfies the requirements of the task I was discussing here.
Cygwin in a XP workgroup doesn't want to work as a rsyncd service
in a friendly way. Cygwin acknowleges this as it is really a windows
integration issue where workgroups just aren't real clever about
rights, certainly in comparison to domains.

I can buid a diff if anyone is interested or make the binary I built
available for download. Hopefully it is stable, and I'll continue to
use it (this is day one of the hack).

Thanks for the tips, Craig. Nice work with backuppc altogether.
Kudos for your efforts.

FYI, I have decided to change the --fixed-csumseed option to
--checksum-seed=NUM option. I'm attaching an email I sent to
the rsync mail list a few days ago.

Also, rsync 2.6.2 contains an optional patch in patches/chmod-option.diff.
Will this alternative work instead of the patch above? The reason I
suggest this is that the patches included with rsync are "close" to
becoming standard features.

I'll put a new rsync 2.6.2 with the --checksum-seed=NUM patch and one of
the chmod patches, plus the latest cygwin1.dll, on backups.sf.net soon.

Craig

#######################################################################
To: jw schultz
From: Craig Barratt
Cc: rsync < at > lists.samba.org
Date: Sat, 01 May 2004 17:06:10 -0700
Subj: Re: setting checksum_seed

jw schultz writes:

There was some talk last year about adding a --fixed-checksum-seed
option, but no consensus was reached. It shouldn't hurt to make the
seed value constant for certain applications, though, so you can feel
free to proceed in that direction for what you're doing for your client.

FYI, I just checked in some changes to the checksum_seed code that will
make it easier to have other options (besi des the batch ones) specify
that a constant seed value is needed.

I would really like a --fixed-csumseed option become a standard
feature in rsync. Just using the batch value (32761) is fine.
Can I contribute a patch? The reason I want this is the next
release of BackupPC will support rsync checksum caching, so that
backups don't need to recompute block or file checksums. This
requires a fixed checksum seed on the remote rsync, hence the
need for --fixed-csumseed. I've included this feature in a
pre-built rsync for cygwin that I include on the SourceForge
BackupPC downloads.

1. Yes, you may contribute a patch. I favor the idea of
being able to supply a checksum seed.

2. Lets get the option name down to a more reasonable
length. --checksum-seed should be sufficient.

I submitted a patch in Feb 2004 to add a --fixedcsum-seed option
(which only sets checksum_seed to 32761, the batch file value):

http://lists.samba.org/archive/rsync/2004-February/008616.html

Earlier, I submitted a patch (against 2.5.6pre1 in Jan 2003)
for --checksum-seed=NUM:

http://lists.samba.org/archive/rsync/2003-January/004845.html

Since I posted both of these patches, there was an interesting thread
started by Eran Tromer about potential block checksum collisions that
could be exploited by someone to trigger first-pass failures. See:

http://lists.samba.org/archive/rsync/2004-March/008821.html

The consequence is just a performance penalty, since with very
high probabi

lity the whole-file checksum fails, triggering the
second pass with the full checksum size, which will succeed.
Eran recommended that checksum_seed be more random than time().


Join Excite! - http://www.excite.com
The most personalized portal on the Web!



Join Excite! - http://www.excite.com
The most personalized portal on the Web!

Post rsynd with workgroup / file permission 
Craig,

I am now successful in getting the rsync chmod --chmod= option to work OK, but any --checksum-seed=(>0) causes auth failure on the rsyncd server. Not much of a logged message: "auth failed on module cDrive from host1" Attached is a consolidated diff of your patch, the distribution's chmod patch, and the recent mkdir patch (to reduce mkdir errors when dir exists) in case you wanted to see how I fit it together. The resulting windows 2.6.2-based binary http://www.seawall.com/rsync.zip was compiled on xp-pro in cygwin. The linux side (Fedora) has the same patch/version applied. Any suggestions?

Thank you, it seems like it's pretty close,

Andy

--- On Tue 05/04, Craig Barratt < cbarratt < at > users.sourceforge.net > wrote:From: Craig Barratt [mailto: cbarratt < at > users.sourceforge.net]To: endocrantz < at > excite.com Cc: backuppc-users < at > lists.sourceforge.netDate: Tue, 04 May 2004 07:40:52 -0700Subject: Re: [BackupPC-users] rsynd with workgroup / file permission On Mon, 2004-04-19 at 18:23, Andy E wrote:

I downloaded rsync 2.6.0 soruce & 2.6.0-1 patch (from cygwin mirrors)
applied the "-1" patch, the backuppc patch from sourceforge, and then
manually patched from

http://www.mail-archive.com/rsync < at > lists.samba.org/msg06792.html

This produces a fixed-csumseed static-umask/chmod-capable
rsync binary. The result being I can create files in any mode I wish.
This satisfies the requirements of the task I was discussing here.
Cygwin in a XP workgroup doesn't want to work as a rsyncd service
in a friendly way. Cygwin acknowleges this as it is really a windows
integration issue where workgroups just aren't real clever about
rights, certainly in comparison to domains.

I can buid a diff if anyone is interested or make the binary I built
available for download. Hopefully it is stable, and I'll continue to
use it (this is day one of the hack).

Thanks for the tips, Craig. Nice work with backuppc altogether.
Kudos for your efforts.

FYI, I have decided to change the --fixed-csumseed option to
--checksum-seed=NUM option. I'm attaching an email I sent to
the rsync mail list a few days ago.

Also, rsync 2.6.2 contains an optional patch in patches/chmod-option.diff.
Will this alternative work instead of the patch above? The reason I
suggest this is that the patches included with rsync are "close" to
becoming standard features.

I'll put a new rsync 2.6.2 with the --checksum-seed=NUM patch and one of
the chmod patches, plus the latest cygwin1.dll, on backups.sf.net soon.

Craig



Join Excite! - http://www.excite.com
The most personalized portal on the Web!

Display posts from previous:
Reply to topic Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
  


Magic SEO URL for phpBB