feat: Snapshot retention and automatic cleanup #63

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

Summary

Add retention settings for content snapshots, similar to backup retention:

  • Maximum snapshot count (oldest deleted first)
  • Maximum snapshot age in days
  • Cleanup runs alongside backup cleanup in the system plugin

Why

Without retention, snapshot JSON files accumulate indefinitely. Sites that create daily automated snapshots (#56) need automatic pruning.

Files

  • config.xml — add snapshot_retention_count and snapshot_retention_days fields
  • plg_system_mokosuitebackup — add cleanupOldSnapshots() alongside cleanupOldBackups()
  • sql/updates/mysql/ — no schema change needed (retention stored in component params)
## Summary Add retention settings for content snapshots, similar to backup retention: - Maximum snapshot count (oldest deleted first) - Maximum snapshot age in days - Cleanup runs alongside backup cleanup in the system plugin ## Why Without retention, snapshot JSON files accumulate indefinitely. Sites that create daily automated snapshots (#56) need automatic pruning. ## Files - `config.xml` — add `snapshot_retention_count` and `snapshot_retention_days` fields - `plg_system_mokosuitebackup` — add `cleanupOldSnapshots()` alongside `cleanupOldBackups()` - `sql/updates/mysql/` — no schema change needed (retention stored in component params)
jmiller added the component: scheduler label 2026-06-21 16:50:25 +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#63