Check frequency
can cause an invalid set of options
#565
Loading…
x
Reference in New Issue
Block a user
No description provided.
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
archives
was run recently, thus it is filtered out (filter_checks_on_frequency
) from the set ofrepository/archives/extract/data
, leavingrepository/extract/data
.make_check_flags
receives this list, and becauserepository
is present andarchives
is not, it transforms the CLI flags passed toborg
to contain--repository-only
making the full command:borg check --repository-only --verify-data --debug --show-rc
--repository-only
and--verify-data
are mutually exclusive, so this command fails.Expected behavior (if a bug)
Either
data
check is requested and due but thearchives
check is not requested or due, then silently add thearchives
check as required fordata
to succeeddata
check is requested and due but thearchives
check is not requested or due, then silently remove thedata
check 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.6
borgmatic installation method: pipenv
Borg version:
1.2.1
Python version:
3.9.2
Database 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
data
check, that implicitly ranarchives
as 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!