DO NOT REPLY [Bug 4162] Wanted: a mechanism to prevent rsync network compression of compressed files

samba-bugs at samba-bugs at
Thu Jul 12 10:14:54 GMT 2007

boris at changed:

           What    |Removed                     |Added
                 CC|                            |boris at

------- Comment #1 from boris at  2007-07-12 05:14 CST -------
I would also like to see such a function. On Linux the file command could be
used to determine the exact file type, which is more robust than using a
built-in or user-supplied list of file extentions (like .gz, .bz2, .jpg and so

Instead of calling the file command rsync can directly use libmagic. That
should also be possible on non-UNIX systems I think, since the library is
surely portable.

The other solution by testing compression on the first 8k is also a very good
one, that might be even faster to implement.

Configure bugmail:
------- You are receiving this mail because: -------
You are the QA contact for the bug, or are watching the QA contact.

More information about the rsync mailing list