feat: add content plugin (auto-backup triggers) #26

Open
opened 2026-06-04 15:33:43 +00:00 by jmiller · 0 comments
Owner

Summary

Add plg_content_mokobackup to trigger automatic backups on content events.

Triggers

  • Before Joomla update (onJoomlaBeforeUpdate or via system plugin)
  • Before extension install/update/uninstall
  • On scheduled intervals before major content changes
  • Configurable: which events trigger a backup

Configuration

  • Enable/disable per trigger type
  • Select which backup profile to use
  • Cooldown period (prevent multiple backups within N minutes)
  • Max auto-backups to keep

Implementation

  • New plugin: plg_content_mokobackup (or plg_system if content events are insufficient)
  • Namespace: Joomla\Plugin\Content\MokoBackup
  • SubscriberInterface pattern
  • Reuse BackupEngine/SteppedBackupEngine
  • Add to pkg_mokobackup.xml package manifest
  • Auto-enable in script.php postflight
## Summary Add plg_content_mokobackup to trigger automatic backups on content events. ## Triggers - Before Joomla update (onJoomlaBeforeUpdate or via system plugin) - Before extension install/update/uninstall - On scheduled intervals before major content changes - Configurable: which events trigger a backup ## Configuration - Enable/disable per trigger type - Select which backup profile to use - Cooldown period (prevent multiple backups within N minutes) - Max auto-backups to keep ## Implementation - New plugin: plg_content_mokobackup (or plg_system if content events are insufficient) - Namespace: Joomla\Plugin\Content\MokoBackup - SubscriberInterface pattern - Reuse BackupEngine/SteppedBackupEngine - Add to pkg_mokobackup.xml package manifest - Auto-enable in script.php postflight
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: MokoConsulting/MokoJoomBackup#26