GDS K S describes a PostgreSQL 16 recovery rehearsal in My nightly backup job had been green for months. I never restored it once. The author used a disposable database on a Mac with Docker and a build of Levelrail from its v1.0.1 release branch. The exercise gives a concrete way to check whether a backup can bring back the records an application depends on.
Capture the expected result before restoring
The test started with 500 customers and 2,000 orders. The author recorded counts for both tables and summed the order values in cents. After taking the backup, the author deliberately removed 500 orders from the test database, then restored the backup into a separate database. The live test database still held 1,500 orders. The restored database had 2,000, and its order total matched the value recorded before the deletion.
Both queries mattered. The row count caught missing orders in the live test database. The sum checked a property the count could miss, such as a changed amount on an existing row. Matching totals can still hide individual differences. For a billing application, another check could compare the amounts and statuses of a few known orders at the backup point.
Record what the rehearsal actually verified
The author also ran a drill against a local S3-compatible destination following an initial rejection for a local backup target. The Levelrail drill documentation at the tested commit describes checking the stored object against its recorded checksum, replaying supported database dumps in a scratch container, and checking the resulting tables. The author's manual query added an application-specific check. The article describes scheduled drills and second-destination copies from documentation, outside the scope of the observed test.
A recovery log can capture the backup identifier, the expected figures, the observed figures, and how long it took to reach a queryable database. If the application also needs role mappings, extensions, or separate platform configuration, those dependencies deserve their own checks. What would your team query first to decide whether a restored database was ready for the application?