Skip to content

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

Description

@mr-raj12

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions