Repository navigation
Feature/planned verify - #18
Merged
Merged
Conversation
added 2 commits
November 21, 2026 21:10
… the closest admin Replaces the hard-coded Sunday 05:00 re-read of every chain. - Every restore point of a folder (active and retired chains) is re-hashed once per interval, point by point (proxy verify with seq), as a proxy job that takes the proxy's lock. Production proxies work inside the folder's hours (local to each cluster), only when their cluster has no backup work running or due, and only on a point that fits before the hours end and the next backups start; a check cut off at the end continues the next night. New points first. Backups and restores preempt a running verification. - A cluster can be marked DR (normally passive): its proxies verify around the clock, pausing between points while backups of the folder write to the share unless the folder allows it. - A failure is checked a second time before it counts. A failed point or a chain unverified for twice the interval opens a backup.verify_alerts row: a badge on the cluster card (critical / warning) and one mail per folder to the closest admin (folder > customer > MSP > installation), claimed atomically by a dashboard thread. - Backup -> Schedules -> Verification (settings, counts, proxies), a Verified column on restore points, verification history on Runs, the role in the cluster dialog. Texts in en/nl/de/fr. - Migration 052. Manual, administration guide and CHANGELOG updated.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Planned verification per folder, DR clusters, verification alerts (1.6.0)
Problem
Chain verification was a fixed job, every Sunday at 05:00:
Change
Planned verification, per folder
Every restore point of the folder is re-checked against its checksums once per interval. This includes retired chains, which can still be restored.
The check runs one point at a time, using the proxy's existing
verifyjob withseq; the proxy itself is unchanged.New points go first, so a point is checked within a day.
Backup → Schedules → Verification sets the interval (default 7 days, 0 = off) and the hours for production proxies (default 01:00–06:00, local to each cluster). It also shows counts (verified within the interval, not yet verified, overdue, failed) and, per proxy, whether it works now and its measured read speed.
A verification is a proxy job: it takes the proxy's lock, like a backup or restore. A backup or restore that needs the proxy stops the verification on it, which is checked again later.
A production proxy verifies only:
A check cut off at the end of the hours continues the next night.
DR clusters
Alerts and email
backup.verify_alerts. It shows on the cluster card as a critical (failed) or warning (overdue) badge.FOR UPDATE SKIP LOCKED, so they are safe across gunicorn workers). It sends one email per folder to the closest admin: the folder's admins, else the customer's, else the MSP's, else the installation's.Also
verify_failed,verify_overdue) in all four languages.052_planned_verify.sql:backup.verify_settings,config.clusters.role,backup.points.verify_checked_at,backup.verify_runs,backup.verify_alerts.Tests
tests/test_backup_verifier.py:tests/test_verify_mail.py: closest-admin rules, one email per kind per folder, the atomic claim, no mail when mail is not set up.Not tested live
Notes