Follow-up from #9925 (this thread: #9925 (comment)).
Right now borg check --max-duration requires --repository-only. One of the old reasons was that the archives check needed the repository phase to run first so it had a complete repository index to work from.
That is not the case in borg2 anymore. ArchiveChecker.check builds its own chunk index with build_chunkindex_from_repo(...) in src/borg/archive.py, so it does not depend on the repository check having run.
The one reason that still stands is that the archives check has no max_duration support, so a time-boxed run can only really cover the repository pack check.
So the open question is whether we keep the requirement (just documented) or drop it and add time-boxing to the archives check too. Filing this so it does not get lost.
Follow-up from #9925 (this thread: #9925 (comment)).
Right now
borg check --max-durationrequires--repository-only. One of the old reasons was that the archives check needed the repository phase to run first so it had a complete repository index to work from.That is not the case in borg2 anymore.
ArchiveChecker.checkbuilds its own chunk index withbuild_chunkindex_from_repo(...)insrc/borg/archive.py, so it does not depend on the repository check having run.The one reason that still stands is that the archives check has no
max_durationsupport, so a time-boxed run can only really cover the repository pack check.So the open question is whether we keep the requirement (just documented) or drop it and add time-boxing to the archives check too. Filing this so it does not get lost.