feat: Snapshot retention and automatic cleanup #63
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Add retention settings for content snapshots, similar to backup retention:
Why
Without retention, snapshot JSON files accumulate indefinitely. Sites that create daily automated snapshots (#56) need automatic pruning.
Files
config.xml— addsnapshot_retention_countandsnapshot_retention_daysfieldsplg_system_mokosuitebackup— addcleanupOldSnapshots()alongsidecleanupOldBackups()sql/updates/mysql/— no schema change needed (retention stored in component params)