This article is for anyone running a production database on a managed platform who needs to know how much data a restore would really lose. A dashboard line such as “Backups: enabled, daily, 14-day retention” takes you back to last night’s snapshot, not to the minute before a mistake. If someone drops a table in the afternoon, a daily backup alone brings the database back as it was hours earlier, and every write since then is gone. Point-in-time recovery needs WAL archiving, where the database keeps a continuous copy of its write-ahead log (the record of every change) so it can replay changes up to a moment you choose. Check which of the two your platform has turned on, because many dashboards show them in different menus.
What’s happening
Two protection mechanisms run side by side on a managed database, and they cover different threats:
- Periodic backups (the daily snapshot or
mysqldump/pg_dump) are a complete consistent state of the database at a moment in time. They protect against catastrophic data loss — corruption, accidental drop, host failure that takes the volume with it. They are bounded by the snapshot cadence: if you take one per day, your RPO is up to 24 hours. - WAL archiving (continuous archiving of write-ahead log segments to object storage) is the mechanism that lets you roll forward from a base backup to any point in time. It protects against the RPO gap. Without WAL archiving, the daily snapshot is your only restore option. With it, you can restore to “14:22:59, before the DROP TABLE.”
On most PaaS platforms (Jelastic-based managed offerings included), the dashboard’s “Backups” section refers to the periodic backup only. WAL archiving is either:
- A separate feature you have to enable explicitly (sometimes called “Point-in-time recovery,” “PITR,” “continuous backup,” or “WAL shipping”), often with its own retention setting and its own cost line item.
- Not exposed in the UI at all — the platform may take WAL archives internally for disaster recovery, but they are not exposed for customer-initiated PITR.
The two retentions are also independent. “14-day backup retention” means you can restore to one of 14 daily snapshots. “7-day PITR retention” means you can roll forward to any second within the last 7 days but only if WAL is archived. They can be configured asymmetrically and frequently are.
The third gap: a logical dump (pg_dump --custom, mysqldump) is not the same as a base backup. The PaaS may take physical snapshots and not produce logical dumps; if you ever want to restore a single table or a single row, a physical snapshot requires standing up a full database. A logical dump is psql < file.sql. Most production environments need both.
How to verify
What’s the platform actually protecting? On Jelastic:
# List backup configurations on the DB node group
jelastic environment control get-env-info \
--envName "acme-prod-db" \
--session "$JELASTIC_TOKEN" \
| jq '.nodes[] | select(.nodeGroup=="sqldb") | {backupConfig, scheduleConfig}'
# Trigger a manual backup so you have a known reference point
jelastic environment control execute-action \
--envName "acme-prod-db" \
--nodeGroup "sqldb" \
--action "backup" \
--session "$JELASTIC_TOKEN"
For Postgres, check if WAL archiving is actually running:
-- Is archive_mode on?
SHOW archive_mode;
SHOW archive_command;
SHOW archive_library;
-- Is archiver active and not stuck?
SELECT * FROM pg_stat_archiver;
-- Look at: archived_count vs failed_count, last_archived_time
-- If failed_count > 0 and last_failed_time is recent, archiving is broken.
-- How much WAL is waiting to be archived?
SELECT
pg_walfile_name(pg_current_wal_lsn()) AS current_wal,
count(*) FILTER (WHERE name LIKE '%.ready') AS waiting
FROM pg_ls_dir('pg_wal/archive_status') AS name;
If archive_mode is on but pg_stat_archiver.failed_count is climbing, WAL files are accumulating on the primary’s disk because they can’t ship to object storage. The dashboard may still say “backups: green.”
For MySQL, the equivalent is checking binary log configuration:
SHOW VARIABLES LIKE 'log_bin';
SHOW VARIABLES LIKE 'binlog_expire_logs_seconds';
SHOW BINARY LOGS;
If log_bin = OFF, you cannot PITR. Period.
Run an actual restore-to-a-point drill — quarterly, recorded:
# Postgres restore drill: bring up a throwaway environment, restore yesterday's base,
# replay WAL to 5 minutes ago, verify row counts match expectations
# (full procedure in the PITR drill runbook)
# MySQL equivalent: restore the dump, then replay binary log up to a position
mysqlbinlog --start-datetime="2026-05-13 03:00:00" \
--stop-datetime="2026-05-13 14:22:00" \
/var/lib/mysql/binlog.000042 | mysql -u root -p
If the drill produces a usable database, you have a real backup. If the drill takes 6 hours, that’s your RTO — not the “instant restore” the dashboard implied.
The fix
Treat the two layers as two configurations to verify, not one:
-
Periodic backup: confirm the cadence (daily or more frequent), the retention (14 days minimum for most B2B SaaS), and that the backups are restorable. Sample restore monthly.
-
WAL / binlog archiving: confirm it is enabled, confirm archives are actually shipping (not just enabled but failing), and confirm the retention window covers your worst-case RPO requirement. A 24-hour PITR window is dangerously short — make it 7 days minimum.
-
Logical dumps as a third layer: schedule
pg_dump --format=customormysqldump --single-transactionto object storage daily. This is what you use for “restore one table” without standing up a parallel database. -
Document the matrix, not just the configurations:
| Threat | Protected by | RPO | RTO |
|---|---|---|---|
| Lost volume / host failure | Physical snapshot | 24h | 30-60 min |
| Accidental DROP TABLE 5 min ago | WAL/binlog archive | seconds | 30-60 min |
| Single bad row in one table | Logical dump | 24h | minutes |
| Region-wide platform incident | Off-platform copy | varies | hours |
Most operators discover the gap on the day they need it. The drill is what converts the assumption into evidence.
Stack Harbor configures and verifies all four layers as part of Cloud PaaS and the broader environment management discipline — quarterly restore drills, off-platform copies, RPO/RTO documented in the runbook. Book a backup audit if your last drill predates last quarter.