No 'auto' compression #421

Closed
opened 2021-05-16 14:48:42 +00:00 by casperghst42 · 2 comments

What I'm trying to do and why

borgbackup allows to set compression to auto, which in some cases is a very good idea.

borgmatic does not allow for that.

$ borg help compression


...
auto,C[,L]
Use a built-in heuristic to decide per chunk whether to compress or not.
The heuristic tries with lz4 whether the data is compressible.
For incompressible data, it will not use compression (uses "none").
For compressible data, it uses the given C[,L] compression - with C[,L]
being any valid compression specifier.


Steps to reproduce (if a bug)

set 'compression: auto,C' in config.yaml

borg create: error: argument -C/--compression: invalid CompressionSpec value: 'auto,C'

Expected behavior (if a bug)

Run the backup.

Other notes / implementation ideas

Environment

borgmatic version: 1.5.13

borgmatic installation method: pip

Borg version: borg 1.1.16

Python version: 3.9

operating system and version: Ubuntu 20.04 LTS

#### What I'm trying to do and why borgbackup allows to set compression to auto, which in some cases is a very good idea. borgmatic does not allow for that. $ borg help compression ---- ... auto,C[,L] Use a built-in heuristic to decide per chunk whether to compress or not. The heuristic tries with lz4 whether the data is compressible. For incompressible data, it will not use compression (uses "none"). For compressible data, it uses the given C[,L] compression - with C[,L] being any valid compression specifier. ---- #### Steps to reproduce (if a bug) set 'compression: auto,C' in config.yaml borg create: error: argument -C/--compression: invalid CompressionSpec value: 'auto,C' #### Expected behavior (if a bug) Run the backup. #### Other notes / implementation ideas #### Environment **borgmatic version:** 1.5.13 **borgmatic installation method:** pip **Borg version:** borg 1.1.16 **Python version:** 3.9 **operating system and version:** Ubuntu 20.04 LTS
Author

Figured it out; should be 'auto,', like 'auto,zstd' ...

Figured it out; should be 'auto,<something>', like 'auto,zstd' ...
Owner

Glad to hear that's working for you! Sounds like the Borg docs themselves could be a little clearer on this point.

Glad to hear that's working for you! Sounds like the Borg docs themselves could be a little clearer on this point.
witten added the
question / support
label 2021-05-16 23:47:38 +00:00
Sign in to join this conversation.
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: borgmatic-collective/borgmatic#421
No description provided.