Check frequency can cause an invalid set of options
#565
Reference in New Issue
Block a user
Delete Branch "%!s()"
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
Configure checks to be more appropriate (run the lengthy ones less often than the quick ones)
Steps to reproduce (if a bug)
Actual behavior (if a bug)
For me
archiveswas run recently, thus it is filtered out (filter_checks_on_frequency) from the set ofrepository/archives/extract/data, leavingrepository/extract/data.make_check_flagsreceives this list, and becauserepositoryis present andarchivesis not, it transforms the CLI flags passed toborgto contain--repository-onlymaking the full command:borg check --repository-only --verify-data --debug --show-rc--repository-onlyand--verify-dataare mutually exclusive, so this command fails.Expected behavior (if a bug)
Either
datacheck is requested and due but thearchivescheck is not requested or due, then silently add thearchivescheck as required fordatato succeeddatacheck is requested and due but thearchivescheck is not requested or due, then silently remove thedatacheck so that the overall command can succeed but with a reduced set of checks until the next time the two checks are naturally scheduled togetherOther notes / implementation ideas
Environment
borgmatic version:
1.6.6borgmatic installation method: pipenv
Borg version:
1.2.1Python version:
3.9.2Database version (if applicable): n/a
operating system and version: Debian 11
Wow, good catch! And thank you so much for diving into the source to see what's getting passed around. I think this probably makes sense to do, if documented well:
My thinking is that the pre-existing behavior was that if you requested a
datacheck, that implicitly ranarchivesas well.Okay, this should be fixed now with the first approach you suggested. It'll be part of the next release. Thanks again!
Just released in borgmatic 1.7.0!