<div dir="ltr"><div>I've been playing around with the "--skip-compress" option in rsync 3.1.2 and it appears to not selectively skip the compression of files with suffixes in the list.  As a basic example, if I transfer two files, a ".log" file and a ".grb2" file, I get the following results:<br><br><div style="margin-left:40px">no compression<br>sent 156,412,712 bytes  received 110 bytes  62,565,128.80 bytes/sec<br>total size is 156,374,300  speedup is 1.00<br><br>default compression, no custom skip list<br>sent 99,482,854 bytes  received 110 bytes  10,471,890.95 bytes/sec<br>total size is 156,374,300  speedup is 1.57<br><br>default compression, "--skip-compress=grb2"<br>sent 99,482,854 bytes  received 110 bytes  11,703,878.12 bytes/sec<br>total size is 156,374,300  speedup is 1.57<br></div><br></div><div>This tells me that the custom skip list is not successfully skipping the grb2 file compression.  If, on the other hand, I simply rename the log file to be read after the grb2 file, I see the following:<br><br><div style="margin-left:40px">no compression<br>sent 156,412,731 bytes  received 110 bytes  62,565,136.40 bytes/sec<br>total size is 156,374,300  speedup is 1.00<br><br>default compression, no custom skip list<br>sent 99,482,869 bytes  received 110 bytes  11,703,879.88 bytes/sec<br>total size is 156,374,300  speedup is 1.57<br><br>default compression, "--skip-compress=grb2"<br>sent 156,439,778 bytes  received 110 bytes  62,575,955.20 bytes/sec<br>total size is 156,374,300  speedup is 1.00<br></div></div><div><br></div><div>Which I believe indicates that <i>no</i> files are compressed when the first file read has a suffix in the skip list.  Looking at the <span style="font-family:monospace,monospace">set_compression</span> function in token.c, I see that the <span style="font-family:monospace,monospace">compression_level</span> variable is set to 0 when a file with a suffix in the skip list is encountered, but that variable appears to only be read once during the initial execution of <span style="font-family:monospace,monospace">send_deflated_token</span>.<br><br>Am I misunderstanding the intent of the --skip-compress option?<br><br></div><div>Thank you for your consideration,<br><br></div><div>Kit<br></div></div>