Jason Haar
2006-Oct-13 00:16 UTC
"rsync -z" not working as expected under 2.6.8 and 2.6.9?
I got curious as to how rsync operates, and got a few tests going under ethereal. The results confused me more. I created /tmp/test-out/ containing two different text files - one named "file.txt" and the other "data.gz". ie. data.gz wasn't actually compressed - it was actually text. I then created an empty directory on a rsync server to replicate that data to. I did a "rsync -av /tmp/test-out/ rsync://server/share/test-in" with ethereal running. As expected, ethereal shows the uncompressed contents of both files being sent. Then I reset and did a "rsync -azv /tmp/test-out/ rsync://server/share/test-in" with ethereal running. Unexpectedly there was no sign of uncompressed data in the packet trace! Looks like rsync "decided" to compress data.gz even though /etc/rsyncd.conf had "*.gz" in it's "dont compress" section... Looking at the packets, I see no evidence of the rsyncd server telling the client anything regarding the filenames. So is there some smoke-n-mirrors going on in there? Why did the client compress data.gz - even though it was mentioned on the server as "dont compress"? Enquiring minds would like to know :-) Thanks! -- Cheers Jason Haar Information Security Manager, Trimble Navigation Ltd. Phone: +64 3 9635 377 Fax: +64 3 9635 417 PGP Fingerprint: 7A2E 0407 C9A6 CAF6 2B9F 8422 C063 5EBB FE1D 66D1
Wayne Davison
2006-Oct-13 01:30 UTC
"rsync -z" not working as expected under 2.6.8 and 2.6.9?
On Fri, Oct 13, 2006 at 01:08:54PM +1300, Jason Haar wrote:> Looks like rsync "decided" to compress data.gz even though > /etc/rsyncd.conf had "*.gz" in it's "dont compress" section...That setting only affects files being pulled from an rsync daemon, not pushed to one. It seems that the manpage section for the option was written back in the day when an rsync daemon was always read-only, because it doesn't mention this restriction at all. I'll update the manpage. ..wayne..
Apparently Analagous Threads
- Cannot connect to Samba-3.0.23d (and earlier) from other trusted AD domains
- Vista SP1-rc1 appears to break against Samba-3.0.27a
- Can Asterisk "proxy" a SIP phone to make it look like a Cisco skinny softphone?
- Win2K3 DNS losing Samba DNS entries?
- How do you properly use "--partial"?