3 ms·
'gzip --rsyncable' for gzip. I couldn't find the equivalent for 7z in a quick glance. It supports at least 5 compression algorithms so there is probably not a
by user5994461 10y ago
'gzip --rsyncable' for gzip.
I couldn't find the equivalent for 7z in a quick glance. It supports at least 5 compression algorithms so there is probably not a general option. Maybe one has to play with the advanced settings per algorithm, if they support it.
- JoshTriplett 10y agogzip --rsyncable does make gzip set boundaries so one change doesn't affect the entire rest of the file, just one block. However, the resulting differences don't seem nearly as amenable to the bsdiff algorithm as the changes to the underlying uncompressed data. In almost all cases, you'll likely get better results with bsdiff on the uncompressed data (and bsdiff internally compresses its result).
- user5994461 10y agoDon't know about how bsdiff operate, maybe it's naive. Good deduplication and diff algorithms have adaptive block size detection.