Feature: email notifications on backup success/failure #14

Open
opened 2026-06-02 20:29:28 +00:00 by jmiller · 1 comment
Owner

Send email notifications when backups complete or fail.

Description

Admins need to know when scheduled backups fail, especially for unattended cron-based backups. Add configurable email notifications to the system plugin.

Requirements

  • Email on backup failure (always)
  • Email on backup success (optional)
  • Configurable recipient email(s)
  • Use Joomla's built-in mail system (Factory::getMailer())
  • Email includes: backup name, status, size, duration, log excerpt
  • Per-profile notification toggle

Implementation Notes

  • Add to plg_system_mokobackup or create an onAfterBackup event
  • Fields: notify_email, notify_on_success, notify_on_failure
Send email notifications when backups complete or fail. ## Description Admins need to know when scheduled backups fail, especially for unattended cron-based backups. Add configurable email notifications to the system plugin. ## Requirements - [ ] Email on backup failure (always) - [ ] Email on backup success (optional) - [ ] Configurable recipient email(s) - [ ] Use Joomla's built-in mail system (Factory::getMailer()) - [ ] Email includes: backup name, status, size, duration, log excerpt - [ ] Per-profile notification toggle ## Implementation Notes - Add to plg_system_mokobackup or create an onAfterBackup event - Fields: notify_email, notify_on_success, notify_on_failure
jmiller added the type: featurepriority: highcomponent: enginestatus: ready labels 2026-06-02 20:29:28 +00:00
Author
Owner

Testing Plan

TC-F1.1: Failure notification

  1. Configure notification email in profile
  2. Trigger a backup that will fail (bad backup_dir)
  3. Verify email sent to configured address
  4. Verify email contains error details and log

TC-F1.2: Success notification

  1. Enable notify_on_success
  2. Run successful backup
  3. Verify email sent with backup details (name, size, duration)

TC-F1.3: Disabled notifications

  1. Disable notifications
  2. Run backup (success and failure)
  3. Verify NO emails sent

TC-F1.4: Multiple recipients

  1. Enter multiple emails (comma-separated)
  2. Run backup
  3. Verify all recipients receive email
## Testing Plan **TC-F1.1: Failure notification** 1. Configure notification email in profile 2. Trigger a backup that will fail (bad backup_dir) 3. Verify email sent to configured address 4. Verify email contains error details and log **TC-F1.2: Success notification** 1. Enable notify_on_success 2. Run successful backup 3. Verify email sent with backup details (name, size, duration) **TC-F1.3: Disabled notifications** 1. Disable notifications 2. Run backup (success and failure) 3. Verify NO emails sent **TC-F1.4: Multiple recipients** 1. Enter multiple emails (comma-separated) 2. Run backup 3. Verify all recipients receive email
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: MokoConsulting/MokoJoomBackup#14