[Question] multiple consistency checks config file syntax #559

Closed
opened 2022-07-02 17:23:16 +00:00 by solverz · 3 comments

I see the documentation is very clear on how to specify a single consistency check but I am not sure how to specify multiple.

Which is correct if I want to run frequency 2 weeks and the two checks being repository and archives?

consistency:
    checks:
        - name: repository
          frequency: 2 weeks
        - name: archives
          frequency: 2 weeks
          
consistency:
    checks:
        - name: repository
        - name: archives
          frequency: 2 weeks
          
consistency:
    checks:
        - name: repository, archives
          frequency: 2 weeks
I see the documentation is very clear on how to specify a single consistency check but I am not sure how to specify multiple. Which is correct if I want to run frequency 2 weeks and the two checks being repository and archives? ``` consistency: checks: - name: repository frequency: 2 weeks - name: archives frequency: 2 weeks consistency: checks: - name: repository - name: archives frequency: 2 weeks consistency: checks: - name: repository, archives frequency: 2 weeks ```
Owner

The first example is the correct one! I'll clarify this in the documentation. Thanks for mentioning this documentation gap.

The first example is the correct one! I'll clarify this in the documentation. Thanks for mentioning this documentation gap.
witten added the
question / support
label 2022-07-02 17:25:39 +00:00
Author

The first example is the correct one! I'll clarify this in the documentation. Thanks for mentioning this documentation gap.

Great thank you.

I think this clarification would also be beneficial in the database hooks sections for how to specify multiple hosts and/or databases if you do not want to use "all". :D

> The first example is the correct one! I'll clarify this in the documentation. Thanks for mentioning this documentation gap. Great thank you. I think this clarification would also be beneficial in the database hooks sections for how to specify multiple hosts and/or databases if you do not want to use "all". :D
Owner

Done and done! Thanks again.

Done and done! Thanks again.
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#559
No description provided.