feat: Snapshot and backup notifications — email/ntfy on restore #60

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

Summary

Send email and ntfy notifications when:

  • A content snapshot is created or restored
  • A full site restore is performed from a backup record

Currently notifications only fire for backup creation (success/failure). Restore operations are equally important to audit trail.

Payload

  • Snapshot: type (create/restore), content types, row counts, user who triggered
  • Restore: backup record ID, restore mode (files/db/both), user who triggered

Files

  • src/Engine/SnapshotEngine.php — call NotificationSender after create
  • src/Engine/SnapshotRestoreEngine.php — call NotificationSender after restore
  • src/Engine/RestoreEngine.php — call NotificationSender after restore
  • src/Engine/NotificationSender.php — add snapshot/restore message templates
## Summary Send email and ntfy notifications when: - A content snapshot is created or restored - A full site restore is performed from a backup record Currently notifications only fire for backup creation (success/failure). Restore operations are equally important to audit trail. ## Payload - Snapshot: type (create/restore), content types, row counts, user who triggered - Restore: backup record ID, restore mode (files/db/both), user who triggered ## Files - `src/Engine/SnapshotEngine.php` — call NotificationSender after create - `src/Engine/SnapshotRestoreEngine.php` — call NotificationSender after restore - `src/Engine/RestoreEngine.php` — call NotificationSender after restore - `src/Engine/NotificationSender.php` — add snapshot/restore message templates
jmiller added the component: engine label 2026-06-21 16:50:07 +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#60