You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
doctor: judge backup age against the configured interval, not the 24-hour default #117
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.
Activity