Skip to content

New compression formats #223

@diesl

Description

@diesl

Hi @deitch

similar to #220 and #197, I want to propse a new compression format xz. Maybe I will open a PR, but I have a few questions before:

  • Adding COMPRESS and UNCOMPRESS commands is quite easy, but how about more custom options? In this case, compression settings (-0 .. -9) or number of threads to use (-T) to name a few where a good default is hard to guess. Would you accept some COMPRESS_OPTIONS and DECOMPRESS_OPTIONS env variables?
  • Thinking it further, would you be open to add a custom compression format, where you could define a custom COMPRESS_COMMAND and DECOMPRESS_COMMAND? It could of course be combined with previously mentioned COMPRESS_OPTIONS and DECOMPRESS_OPTIONS

Example:

COMPRESSION=xz
COMPRESS_OPTIONS=-z3 -T4
DECOMPRESS_OPTIONS=-d

COMPRESSION=custom
COMPRESS_COMMAND=xz -z3 -T4
DECOMPRESS_COMMAND=xz -d

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions