Works with the AI Agents you already use
Database Backup and Restore Drill Checker
by Saizul Amin
This skill gives your agent a proven procedure plus scripts that check the facts, so you get the same correct answer every time, with exact fixes instead of vague advice.
$9
Database Backup and Restore Drill Checker
Example session with this skill installed
Run the Database Backup and Restore Drill Checker skill on my project and give me a prioritised list of what to fix, with exact changes.
- Read your context and instructions
- Compiled the database backup
Here is what the Database Backup and Restore Drill Checker skill produced.
Demo: real, unedited output of the skill's bundled script on the test fixture that ships with its source repo.
Output
tests/fixtures/backup-restore-drills/pg_truncated.sql: pg_dump plain, 2,119 bytes, 1.5 h old
complete: NO
source version 16.4, dump tool 16.4
tables: 3 (1 with data)
customers ~50
orders -
audit_log -
result: 1 high, 2 info
HIGH incomplete_dump: end-of-dump marker missing: the dump is truncated
fix: re-run the dump; make the backup script fail on errors (set -o pipefail) and alert on it
INFO owner_statements: 2 OWNER TO statements
fix: if the target lacks these roles restore with pg_restore --no-owner --role=<app_role>
INFO tables_without_data: 2 of 3 tables have no data in the dump: audit_log, orders
fix: fine for empty tables; otherwise check --exclude-table-data / --no-data / --where options
What you do next
- Fix the highest-severity items first.
- Ask your agent to apply the fixes it suggests, then run the skill again to confirm.
- Keep the skill installed and re-run it whenever the project changes.
Connects securely to your tools. The creator never sees your data.
About this skill
Set up and prove PostgreSQL and MySQL/MariaDB backups - pg_dump/pg_restore (custom and directory formats, parallel jobs), pg_dumpall globals, mysqldump/mariadb-dump with --single-transaction, physical backups and point-in-time recovery (pgBackRest, WAL archiving, binlogs), retention and encryption - and run restore drills that check a dump is complete (end marker, truncated gzip, version mismatch, missing table data) and compare row counts between source and restored copy.
Who it's for
Use when the user asks to back up a database, restore a dump, test or verify backups, recover to a point in time, migrate data between servers, or after a failed restore.
What's inside
- Tested, offline Python script(s): dump_inspect.py (deterministic results, standard library only unless noted)
- Reference guides: pitr.md, verify-queries.md, commands.md, drill-checklist.md
- Step-by-step agent instructions in SKILL.md covering: When to use; When not to use; Workflow; Safety rules
Why it's worth it
Generic prompts guess. This skill gives your agent a proven procedure plus scripts that check the facts, so you get the same correct answer every time, with exact fixes instead of vague advice. See the real demo below.
Works with every major AI agent
Built on the open SKILL.md standard: Claude Code, Codex CLI, Cursor, VS Code Copilot, Gemini CLI, Windsurf and 20+ other agents.
Requirements
- Python 3.8+ for the bundled scripts
- No API keys, no account, runs locally
Open source: saizul/sql-database-skills on GitHub (MIT licence, by Saizul Amin).
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse All Claude Skills.
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 1 day ago
- Software
Python 3.8+