Skip to content

doctor: judge backup age against the configured interval, not the 24-hour default #117

Closed

Description

@TusanHomichi

Problem or outcome

doctor's backups check (crates/consolebook-server/src/doctor.rs, check_backups) warns when the newest snapshot is older than scheduler::DEFAULT_INTERVAL_HOURS (24), and its message says "older than the default 24-hour interval". The scheduler uses CONSOLEBOOK_BACKUP_INTERVAL_HOURS. So:

  • an installation backing up hourly reports ok with a 23-hour-old snapshot;
  • a 48-hour installation warns while on schedule.

Found by review of #114, whose operations guide works around it in prose.

Scope

  • doctor --backup-interval-hours, also read from CONSOLEBOOK_BACKUP_INTERVAL_HOURS, the same setting serve reads. It defaults to the same default.
  • The installer's documented doctor commands pass the configured value, or read it from /etc/consolebook/consolebook.env.

Acceptance criteria

  • A test: with a 1-hour interval, a 2-hour-old snapshot warns; with a 48-hour interval, a 30-hour-old snapshot is ok.
  • The operations guide's backups row drops its 24-hour caveat.

Execution record

Activity

  1. added
    bug
    on Oct 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions