Backup assurance
A backup is only worth something if you can restore it, it is intact, and it is recent enough. Backup assurance is the set of Jarwis features that measure this instead of assuming it: an alarm when log archiving falls behind, scheduled restore drills on a separate verification host, checksums and encryption on every backup file, more places to keep backups, and an RPO/RTO panel that compares your targets with what was actually measured.
Log archive lag alarm
Point-in-time recovery depends on a continuous stream of archived logs. If that stream stalls, your real recovery point silently drifts away from the last full backup. Jarwis measures the archive lag — how far behind the newest archived log is — and raises a log_archive_lag alarm when it grows too large.
| Engine | What is measured |
|---|---|
| MySQL / MariaDB / Percona | Time since the last archived binary log (or since the archive schedule was created, if nothing has been archived yet) |
| PostgreSQL | WAL archiving status reported by the node agent: failed archive attempts and completed segments that are still waiting. For a Patroni cluster the worst member counts |
| MongoDB replica set | Age of the newest oplog chunk archived by Percona Backup for MongoDB |
- The default rule fires at 30 minutes of lag. Adjust or add rules under Alerting; the alarm goes to the channels you attach to the rule and resolves on its own when archiving catches up.
- The alarm only exists where archiving is on. Clusters without point-in-time recovery enabled (and Galera or containerized databases, which do not support it) show the lag as not applicable.
- The same number feeds the RPO measurement described below.
Scheduled restore drills
The only proof that a backup works is restoring it. A restore drill does that automatically, away from your production data, and records how long it took and what it found. Drills live on the cluster's Restore drills tab.
Verification host mode
Pick Verification host (container) as the drill mode and choose an online node that is not a member of the cluster. Jarwis copies the backup to that node and restores it into a throwaway container with no network access. Then it:
Starts the engine
The container is created from the engine image matching your cluster's version and the engine must start on the restored data.Counts and checksums
Tables, documents, keys or queues are counted per engine, and the data is checksummed.Checks integrity
The engine's own integrity check runs (for exampleCHECK TABLEfor MySQL/MariaDB,pg_amcheckfor PostgreSQL).Cleans up
The container and the restored data are removed. Your cluster is never touched.
Only one drill runs at a time on a given verification node. The node needs Docker; the first drill for an engine version also downloads its image.
Supported backups
Drills run on logical backups: mysqldump, pg_dump, mongodump, Redis RDB, ClickHouse native backups and RabbitMQ definitions. Physical backups (XtraBackup, pgBackRest, Percona Backup for MongoDB, ClickHouse incremental) are verified with the other drill modes (Ephemeral and Target) instead.
Schedule it
Add a drill schedule with a cron expression (UTC). Leaving it empty uses the default, weekly on Sunday at 03:00. A schedule can be paused and resumed without deleting it. If a scheduled drill fails, Jarwis raises a restore_drill_failed alarm.
Results
- Each backup in the list carries a Verification badge showing the result of its latest drill (passed or failed) and when it ran.
- The drill report shows the verification host, object and row counts, any integrity error, and the measured restore time. These timings are what the RTO side of the RPO/RTO panel is built from.
- The measured restore time covers transferring the backup, starting the engine and loading the data. It does not include installing Docker or pulling the image.
Checksums and default encryption
Every backup file that Jarwis keeps is sealed by default and carries a SHA-256 checksum. You do not have to switch anything on.
- Encrypted at rest. Backup files are encrypted with AES-256-GCM. Each backup gets its own random key, and that key is wrapped with a key derived from your Jarwis secret. This applies to mysqldump,
pg_dump, XtraBackup full and incremental, binary-log archives, mongodump, Redis RDB, RabbitMQ definitions, ClickHouse backups and uploaded dumps, whether stored locally or sent to a remote target. No plain-text copy is left on disk. - Checksum on record. The SHA-256 of the original data is stored with the backup.
- Verified before every restore. Before a restore, a restore drill, a point-in-time recovery or an incremental restore uses a backup, the file is decrypted and its checksum checked. If a single byte is wrong the operation is refused with
backup.integrity_failed(HTTP 422) before anything is started, so a corrupt file can never be half-restored over your database. - Old backups still work. Backups taken before this feature (plain files or the earlier encryption format) can still be restored; those without a checksum are accepted without the integrity check.
Engine-native repositories (pgBackRest and Percona Backup for MongoDB) are checksummed and protected by the tool itself rather than by this file envelope; their encryption follows the storage destination's settings.
Backup targets
Besides S3-compatible storage (S3, MinIO, Cloudflare R2), an organization can send backups to Azure Blob Storage, Google Cloud Storage or an NFS share. Configure it once in Settings → Backup storage: choose the Target type, fill in the fields below and press Test connection.
| Target | You provide | Notes |
|---|---|---|
| Azure Blob Storage | Storage account, account key, container, optional key prefix | The endpoint field is optional and meant for emulators such as Azurite |
| Google Cloud Storage | Bucket, service account JSON, optional key prefix | Uses the native GCS API, not the S3 compatibility mode |
| NFS | NFS server, export path, optional mount options | The controller mounts the export itself (it needs root or passwordless sudo). If you prefer to mount it yourself, enter the mount path instead |
An organization has one remote target at a time. Credentials are stored encrypted and are never shown again after saving. Changing or removing the destination raises a security_backup_destination_changed alarm naming the actor, so an unexpected redirect of your backups does not go unnoticed. Azure Blob and Google Cloud Storage support has been tested against emulators, not certified against live accounts.
Local, remote or both
Each cluster picks its own storage policy on its Backup tab:
- Local — backups stay on the controller.
- Remote — backups are uploaded to the organization's target and the local copy is not kept.
- Both (dual) — backups are kept locally and uploaded to the remote target, so you have a fast local copy and an off-site copy.
Encryption and checksums apply to every target in the same way, and restores verify the checksum no matter where the file came from.
RPO / RTO compliance panel
Two numbers describe how safe your data is: RPO, how much data you could lose, and RTO, how long recovery takes. Most tools let you write them down as goals. Jarwis also measures them and compares.
| Target you set | Measured by Jarwis | |
|---|---|---|
| RPO (data loss) | Minutes | Age of the last good backup plus the log archive lag. With point-in-time recovery working, the lag is small, so the effective RPO is far better than the backup interval |
| RTO (recovery time) | Seconds | Duration of the most recent passed restore drill |
Per cluster
On the cluster's Backup tab, the RPO / RTO compliance card shows each target next to its measured value and a status badge. Enter the targets (RPO target (minutes), RTO target (seconds)) and press Save; empty or 0 turns a target off.
| Status | Meaning |
|---|---|
| Compliant | The measured value is within the target |
| Breach | The measured value exceeds the target (or there is no successful backup at all for an RPO target) |
| No target | You have not set a target for this objective |
| No data yet | There is a target but nothing to measure, for example no restore drill has passed yet for the RTO |
| n/a | The engine has no backups to measure (for example Kafka) |
The card also shows where the number comes from, for example Backup age 3h 10m + archive lag 2m or From restore drill #42.
Fleet view
On the Backups page, the Compliance tab lists every cluster with its RPO target, measured RPO, RTO target, measured RTO and status. A banner at the top counts the clusters currently in breach.
Alarms
A breach raises an rpo_breach or rto_breach alarm through your usual notification channels, and resolves automatically once the measured value is back within the target — because a newer backup completed, archiving caught up, a faster drill passed, or you relaxed the target.
Putting it together
Back up to two places
Set the org's remote target and choose Both on important clusters.Turn on log archiving
Enable PITR so the recovery point is minutes, not hours, and keep thelog_archive_lagrule enabled.Schedule drills
Add a weekly drill on a verification host so every backup chain is proven restorable.Set targets
Enter an RPO and RTO per cluster and let the panel and alarms tell you when reality drifts.
Troubleshooting
| Symptom | What to check |
|---|---|
log_archive_lag keeps firing | Check that the database is up and that the backup destination is reachable and has space. The alarm resolves once the next archive succeeds. |
Restore refused with backup.integrity_failed | The backup file is damaged or was altered. Restore a different backup; with the Both policy the remote copy is a second source. |
| No verification host in the list | The node must be online, run an agent, have Docker, and not be a member of the cluster being verified. |
| RTO shows No data yet | RTO comes from restore drills. Run one (or add a schedule); only a passed drill counts. |
| RPO shows Breach right after setting a small target | The target is shorter than the backup interval plus archive lag. Raise the target, back up more often, or enable log archiving. |
New backups refused with backup.storage_quota_exceeded | The backup storage quota is full (SaaS plans). Delete old backups or shorten retention; the Storage card on the Backups page shows usage. |
| NFS test fails | The controller must be able to mount the export (root or passwordless sudo, and the export must allow the controller's address), or mount it yourself and enter the mount path. |