Skip all checks doesn't work. #1008

Closed
opened 2025-02-25 20:45:38 +00:00 by overgrow ยท 3 comments

What I'm trying to do and why

Using

skip_actions:
    - check

in a config file produces an error.

Steps to reproduce

skip_actions:
- check

Actual behavior

Using

skip_actions:
    - check

in a config file produces an error:

At the top level: Additional properties are not allowed ('skip_actions' was unexpected)
Configuration validation failed

Expected behavior

Should validate OK syntax and when executed it should skip all checks,

Other notes / implementation ideas

No response

borgmatic version

1.8.2

borgmatic installation method

pip install

Borg version

No response

Python version

No response

Database version (if applicable)

No response

Operating system and version

Ubuntu 20.04

### What I'm trying to do and why Using ``` skip_actions: - check ``` in a config file produces an error. ### Steps to reproduce skip_actions: - check ### Actual behavior Using ``` skip_actions: - check ``` in a config file produces an error: ``` At the top level: Additional properties are not allowed ('skip_actions' was unexpected) Configuration validation failed ``` ### Expected behavior Should validate OK syntax and when executed it should skip all checks, ### Other notes / implementation ideas _No response_ ### borgmatic version 1.8.2 ### borgmatic installation method pip install ### Borg version _No response_ ### Python version _No response_ ### Database version (if applicable) _No response_ ### Operating system and version Ubuntu 20.04
Owner

Time to upgrade! ๐Ÿ˜„ skip_actions: was added in borgmatic 1.8.5.

If you can't upgrade right now, there is an alternate way to skip checks in older versions of borgmatic. See the docs for details.

Time to upgrade! ๐Ÿ˜„ `skip_actions:` was added in borgmatic 1.8.5. If you can't upgrade right now, there is an alternate way to skip checks in older versions of borgmatic. See [the docs](https://torsion.org/borgmatic/docs/how-to/deal-with-very-large-backups/#disabling-checks) for details.
Author

Thanks for message! I wasn't not able to find that part of docs.. Thanks!
I have a remote storage which has a slow connection. That's why I need to disable checks.
I'd like to run them locally.. Is there a recommended way to run just checks from another machine on a different schedule and avoid privilege issues?

Thanks!

Thanks for message! I wasn't not able to find that part of docs.. Thanks! I have a remote storage which has a slow connection. That's why I need to disable checks. I'd like to run them locally.. Is there a recommended way to run just checks from another machine on a different schedule and avoid privilege issues? Thanks!
Owner

The docs could certainly be better organized.

To run checks from another machine, you'd need a separate borgmatic configuration file there where (at minimum) checks are enabled. Also see these docs. To avoid privilege issues, just make sure you're accessing the repository as the same Unix user. And you'll also probably want to schedule your checks to run at a different time than your backups so that you don't run into any repository lock contention issues. If you do run into lock contention, you'll see that one or the other borgmatic process will fail to acquire a lock and therefore error out.

The docs could certainly be [better organized](https://projects.torsion.org/borgmatic-collective/borgmatic/issues/942). To run checks from another machine, you'd need a separate borgmatic configuration file there where (at minimum) checks are enabled. Also see [these docs](https://torsion.org/borgmatic/docs/how-to/deal-with-very-large-backups/#running-only-checks). To avoid privilege issues, just make sure you're accessing the repository as the same Unix user. And you'll also probably want to schedule your checks to run at a different time than your backups so that you don't run into any repository lock contention issues. If you do run into lock contention, you'll see that one or the other borgmatic process will fail to acquire a lock and therefore error out.
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#1008
No description provided.