No 'auto' compression #421
Labels
No Label
bug
data loss
design finalized
good first issue
new feature area
question / support
security
waiting for response
No Milestone
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: borgmatic-collective/borgmatic#421
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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
Figured it out; should be 'auto,', like 'auto,zstd' ...
Glad to hear that's working for you! Sounds like the Borg docs themselves could be a little clearer on this point.