Missing LZMA and other compress methods in new versions

Are you referring to Zip-with-LZMA or 7z-with-LZMA2?

The “SharpCompress method” is a not entirely precise… The SharpCompress library supports a wide range of compressions, but for Duplicati we only use the zip part, and the default compression method is Deflate, which is the standard Zip compression method.

You can choose a different compression method, including LZMA, when using the SharpCompress library. Simply set --zip-compression-method=LZMA to use LZMA compression. This has been possible for many years, and is still possible with the latest releases.

I don’t understand what “SharpCompress chunks” are?
I assume the “new version” is 2.1.0.4?

If so, the “new version” supports LZMA the same as the previous version. The difference is that it will default to using a much faster Zip library by default, which only supports LZMA. If you set either one of the options --zip-compression-method=LZMA / --zip-compression-library=SharpCompress this will trigger the use of the more capable, but slower, SharpCompress library.

There is an issue when the new Zip library encounters a file with an unsupported compression method, it will fail to read the file. The intention here was to fall back to SharpCompress, but unfortunately, this fall-back is not working great. Setting --zip-compression-library=SharpCompress fixes this.

If the premise is that you can have a backup where not all files can be opened by a single version, then yes, that would make it hard to use the backup.

One way out of such a mess would be to use the RecoveryTool and the recompress method.
If you use the tool from an older version that supports reading it, it will (hopefully) be able to write it in a format that is supported by a newer tool.

But I don’t think that this is the case right now?

1 Like