This Python script is designed for TrueNAS CORE/SCALE systems to proactively monitor all configured Periodic Snapshot Tasks. It checks if any task is significantly overdue based on its schedule and manually triggers a run using midclt to ensure no snapshots are missed.
This is particularly useful after a system reboot, a power outage, or any prolonged downtime where the TrueNAS internal scheduler might have missed its execution window.
(c) by Henning Dickten 2025 (@hensing)
- Dynamic Task Handling: Fetches all active tasks using midclt call pool.snapshottask.query and does not require hardcoded IDs.