- Home
- Skills
- DevOps & Cloud
- PostgreSQL Restore Drill and Backup Audit
More screenshots
Works with the AI Agents you already use
PostgreSQL Restore Drill and Backup Audit
Prove your backups restore: verified drill, exact row counts, RPO/RTO report.
$19
PostgreSQL Restore Drill and Backup Audit
Example session with this skill installed
Request: "Prove our nightly pg_dump of the shop database actually restores. The auditor wants evidence."
- Read your context and instructions
- Compiled the postgresql restore drill
- Generated the document
The agent first audits the backup posture (read-only), then takes a fresh dump and restores it into an empty scratch database:
$ scripts/restore_drill.sh --dump "$SOURCE_DSN" ./backups
==> Dumping shop to ./backups/shop_20261121T164221Z.dump (custom format, consistent snapshot, read-only)
==> Checksum written to ./backups/shop_20261121T164221Z.dump.sha256
$ scripts/restore_drill.sh --verify backups/shop_20261121T164221Z.dump "$SCRATCH_DSN" --source "$SOURCE_DSN" --report drill-report.md
Checksum OK
Backup file age: 0h (this is your RPO if the source died now)
Restore duration: 1s (RTO for the restore step only)
All 2 tables with data are present
No invalid indexes
All constraints validated
RESULT: DRILL PASSED
drill-report.md (dated, ready for the auditor):
| Table | Rows in source | Rows restored | Status |
| public.customers | 5000 | 5000 | match |
| public.orders | 120000 | 120000 | match |
The posture audit also flagged two gaps: archive_mode=off (no point-in-time recovery) and data checksums off. The agent explains how to fix each and refuses to restore into a database that is not empty or is the same as the source.
postgresql-restore-drill-and-backup-audi.pdf
PDF · document
Example file from a real run - the skill writes it into your workspace.
Connects securely to your tools. The creator never sees your data.
About this skill
Restore drills with evidence: audit WAL archiving and dump freshness, restore into a scratch database, verify tables, indexes and exact row counts, and get a dated RPO/RTO report you can hand to an auditor. Turns "we have backups" into proof.
Why this instead of a free prompt
Free skills ask the model to "be careful". These ship executable gates: a migration that would lock a busy table fails the linter; an alert that references a metric your Prometheus does not have fails verification; a Compose rollout that turns unhealthy rolls itself back. Every script was run against real PostgreSQL 16, Docker 29, ansible-core and Prometheus with node_exporter and postgres_exporter before release.
How it keeps you safe
- Read-only pre-flight first: diagnostics that change nothing.
- Dry-run by default. Anything that changes state needs an explicit apply step and a typed confirmation.
- Rollback built in, and guardrails that refuse unsafe input.
- No secrets printed in output.
Requirements
psql, pg_dump, pg_restore (client ≥ server major). Runs on RHEL/AlmaLinux 8+ and Debian 11+/Ubuntu 20.04+.
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for DevOps & Cloud.
Not for: MySQL, MongoDB or managed-service snapshots alone. Requires psql, pg_dump and pg_restore (client >= server major) on Linux (RHEL/AlmaLinux 8+, Debian 11+/Ubuntu 20.04+).
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed 5 days ago
- Software
- psqlpg_dumppg_restore