#10025·borg

check: does --max-duration really need --repository-only?

Author: mr-raj12Created Aug 3, 2026Updated Sep 30, 2026

Follow-up from #9925 (this thread: https://github.com/borgbackup/borg/pull/9925#discussion_r3682630187).

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.