Skip to content

Scheduling & Database Backups

WireConsole makes recurring cron schedules and SQL database snapshots visible and safe to operate from the admin workspace.

Scheduling lists every task in site/schedule/ with its cron expression, next run time, due status, source preview, and manual trigger.
  • View every registered Task class in site/schedule/ (including module tasks like AccountPruneTask, ExpireCharterHoldsTask, ContactsRetentionTask, and PruneAiUsageLogsTask) with exact cron expressions and next-run timestamps.
  • Run All Currently Due Tasks (schedule:run) or execute a single named task immediately via ConsoleRuntime::runScheduledTasks().
  • Scaffold new scheduled task classes directly into site/schedule/.
Backups creates WireDatabaseBackup SQL snapshots, enforces retention purges, and creates automatic pre-restore safety backups.
  • Create Database Snapshot: Generates a timestamped .sql dump in site/assets/backups/database/ via ProcessWire’s native WireDatabaseBackup with an optional description.
  • Retention & Restore Policy: Purge snapshots older than N days (purgeBackups()) and keep Automatically create a safety backup before restoring any SQL file enabled when running restoreBackup().
  • Superuser-Only Downloads & Restores: Downloading (./download-backup/) and restoring .sql dumps strictly require an authenticated superuser with $config->demo disabled.

Next steps