Multiple consistency checks config file syntax #567

Closed
opened 2022-07-25 23:48:34 +00:00 by modem7 · 2 comments

Building on #559 - how would we go about defining different checks for multiple repos?

E.g.:

Right now I backup to two repos (one local, one remote), and only check one because there's some sort of issue with the checks and borgbase:

consistency:
    check_repositories:
      - ${BORG_REPO_LOCAL}
    checks:
      - name: repository
        frequency: 1 week
      - name: archives
        frequency: always
      - name: extract
        frequency: 2 weeks
      - name: data
        frequency: 1 month
    prefix: 'backup-'

If I wanted to have different values for the different repos, how I would go about it? If this is currently possible ofc.

Building on https://projects.torsion.org/borgmatic-collective/borgmatic/issues/559 - how would we go about defining different checks for multiple repos? E.g.: Right now I backup to two repos (one local, one remote), and only check one because there's some sort of issue with the checks and borgbase: ``` consistency: check_repositories: - ${BORG_REPO_LOCAL} checks: - name: repository frequency: 1 week - name: archives frequency: always - name: extract frequency: 2 weeks - name: data frequency: 1 month prefix: 'backup-' ``` If I wanted to have different values for the different repos, how I would go about it? If this is currently possible ofc.
Owner

It's not currently possible in a single configuration file. The way you'd do it today is with two separate configuration files, one per repository. Then you could go crazy with different consistency checks in each configuration file.

If you wanted to reduce duplication across those configuration files, you could include a base configuration file with common options into each one.

Hope that helps! Let me know your thoughts.

It's not currently possible in a single configuration file. The way you'd do it today is with two separate configuration files, one per repository. Then you could go crazy with different consistency checks in each configuration file. If you wanted to reduce duplication across those configuration files, you could [include a base configuration file with common options into each one](https://torsion.org/borgmatic/docs/how-to/make-per-application-backups/#include-merging). Hope that helps! Let me know your thoughts.
witten added the
question / support
label 2023-02-04 17:18:06 +00:00
Owner

Closing this for now, but please feel free to continue the discussion!

Closing this for now, but please feel free to continue the discussion!
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#567
No description provided.