feat: CLI command for content snapshots #55

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

Summary

Add mokosuitebackup:snapshot CLI command to create and restore content snapshots from the command line.

Subcommands

  • mokosuitebackup:snapshot create --types=articles,categories,modules --description="Pre-migration"
  • mokosuitebackup:snapshot restore --id=5 --mode=replace --types=articles
  • mokosuitebackup:snapshot list
  • mokosuitebackup:snapshot delete --id=5

Why

Enables cron-scheduled content snapshots (e.g., nightly article snapshot before automated content imports) and scripted restore workflows.

Files

  • plg_console_mokosuitebackup/src/Command/SnapshotCommand.php (new)
## Summary Add `mokosuitebackup:snapshot` CLI command to create and restore content snapshots from the command line. ## Subcommands - `mokosuitebackup:snapshot create --types=articles,categories,modules --description="Pre-migration"` - `mokosuitebackup:snapshot restore --id=5 --mode=replace --types=articles` - `mokosuitebackup:snapshot list` - `mokosuitebackup:snapshot delete --id=5` ## Why Enables cron-scheduled content snapshots (e.g., nightly article snapshot before automated content imports) and scripted restore workflows. ## Files - `plg_console_mokosuitebackup/src/Command/SnapshotCommand.php` (new)
jmiller added the component: engine label 2026-06-21 16:49:33 +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#55