Bug 13248 - [PATCH] Updates for DEFAULT_DONT_COMPRESS suffix list
Summary: [PATCH] Updates for DEFAULT_DONT_COMPRESS suffix list
Alias: None
Product: rsync
Classification: Unclassified
Component: core (show other bugs)
Version: 3.1.3
Hardware: All All
: P5 enhancement (vote)
Target Milestone: ---
Assignee: Wayne Davison
QA Contact: Rsync QA Contact
Depends on:
Reported: 2018-02-01 02:05 UTC by Nick Morrott
Modified: 2020-07-27 22:57 UTC (History)
0 users

See Also:

Patch updating DEFAULT_DONT_COMPRESS suffix list (1.75 KB, patch)
2018-02-01 02:05 UTC, Nick Morrott
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Nick Morrott 2018-02-01 02:05:38 UTC
Created attachment 13938 [details]
Patch updating DEFAULT_DONT_COMPRESS suffix list

I'd like to suggest updating rsync's DEFAULT_DONT_COMPRESS list of file suffixes to include the following additional archive and multimedia filetypes.

Several additions reflect the existence of new or more widely used compressed filetypes since the last update >7 years ago, others provide alternate suffixes for existing supported filetypes.


.aac (raw AAC)
.flac (FLAC)
.m1a, .m2a, .mp1, .mp2, .mpa (MPEG audio)
.m4a, .m4b, .m4p, .m4r, .m4v (Apple AAC)
.opus (Opus)
.spx, (Speex)


.m1v, .m2v, .mpeg, .mpg, .mpv (MPEG video)
.qt (Apple Quicktime, additional to .mov)

Multimedia containers

.3g2, .3gp (3GPP)
.f4v, .flv, (Flash)
.m2ts (Blu-ray)
.mka, .mkv (Matroska)
.oga, .ogm, .ogv, .ogx (Ogg, additional to .ogg)
.ts (MPEG Transport Stream)
.webm (Google WebM)


.webp (Google WebP)


.apk (Android Package Kit, extended from .jar/.zip)
.dmg (Apple OS X Disk Image)
.ear, .jar, .war (Java archives, extended from .zip)
.lrz (lrzip)
.rz (rzip's default extension, additional to .rzip)
.sz (Google Snappy)
.tbz2 (tar+bzip2, additional to .tbz)
.Z, (compress)

Note that the .VOB and .MTS suffixes are intentionally uppercased, due to the filesystems used in DVD and AVCHD media.

The attached patch adds these filetypes to loadparm.c and also documents them in rsync.yo.

Kind thanks,
Comment 1 Wayne Davison 2020-07-27 22:57:39 UTC
I've added the missing file suffixes into the latest skip-compress list for the upcoming 3.2.3 release.