Disabling Checks is broken: {'name': 'disabled'} is not of type 'string' #639
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#639
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
I'm trying to disable health checks on my backup client because the storage is a read-only remote handling consistency checks on its own terms and can perform these checks faster.
Steps to reproduce (if a bug)
According to the docs, disabling consistency checks works like this:
So all I do is adding these lines to a working config under
/root/.config/borgmatic.d/profile-name.yaml
.This is how the complete file looks like:
After that, just run a simple
borgmatic list --verbosity 2
.Actual behavior (if a bug)
This is what I'm getting:
Expected behavior (if a bug)
The expected behavior would be that the example from the documentation worked.
Other notes / implementation ideas
I tried some variants of the given config above because of the type not being 'string' like
- name: 'disabled'
,- name: "disabled"
or- name: repository
but none of them changed the error message.Environment
borgmatic version: 1.5.20
borgmatic installation method: Ubuntu/apt
Borg version: borg 1.2.3
Python version: Python 3.10.6
operating system and version: Ubuntu Server 22.04
Disabling Checks is broken / {'name': 'disabled'} is not of type 'string'to Disabling Checks is broken: {'name': 'disabled'} is not of type 'string'Looks like this is a version mismatch. To disable checks in the version of borgmatic you're using, try this:
Or better yet, upgrade borgmatic if possible. (The version you're using is almost a year and a half old.)
I'll clarify this detail in the documentation. Thanks for reporting it!
You're right. Using your example works just fine. Thanks a lot for your help!
In case someone else wants to install the latest borgmatic version on Ubuntu Server 22.04 but wants to avoid using other package managers than apt, I've found this PPA: https://launchpad.net/~vincent-c/+archive/ubuntu/ppa/+packages
I just downloaded the current borgmatic deb file and installed it via dpkg on top of the existing one. Meaning, should my apt sources ever get a newer version for borgmatic, it'll be installed automatically.
Awesome, glad to here you've got it working! The documentation has been updated as well.