feat: Auto-verify backup integrity after creation #65

Closed
opened 2026-06-21 16:51:42 +00:00 by jmiller · 0 comments
Owner

Summary

After a backup archive is created, automatically verify it can be read by opening and testing a few entries. Currently verification is manual (toolbar button). Auto-verify catches corrupt archives immediately instead of months later when needed.

Implementation

  • After archive creation, open the archive and verify:
    • Archive opens without error
    • database.sql is present (for full/database backups)
    • At least N files are readable (spot-check)
    • SHA-256 checksum matches
  • Log verification result in backup record
  • If verification fails, mark backup with warning status (not full failure)

Files

  • src/Engine/BackupEngine.php — add verification step after archive creation
  • src/Engine/SteppedBackupEngine.php — add verify phase
## Summary After a backup archive is created, automatically verify it can be read by opening and testing a few entries. Currently verification is manual (toolbar button). Auto-verify catches corrupt archives immediately instead of months later when needed. ## Implementation - After archive creation, open the archive and verify: - Archive opens without error - `database.sql` is present (for full/database backups) - At least N files are readable (spot-check) - SHA-256 checksum matches - Log verification result in backup record - If verification fails, mark backup with warning status (not full failure) ## Files - `src/Engine/BackupEngine.php` — add verification step after archive creation - `src/Engine/SteppedBackupEngine.php` — add verify phase
jmiller added the component: engine label 2026-06-21 16:51:42 +00:00
Sign in to join this conversation.
Priority Medium
Type Feature
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: MokoConsulting/MokoSuiteBackup#65