mysql-backup-restore
Skill by eosphoros-ai
Evaluates MySQL backup strategy and designs recovery plans. It covers RPO/RTO checks, point-in-time recovery, accidental-delete rollback and recovery drills. It is for DBAs and operators who need to confirm backups can be restored in time.
Install mysql-backup-restore
Built from the published package, never by AI.
git clone --depth 1 https://github.com/eosphoros-ai/DB-GPT /tmp/DB-GPT && mkdir -p ~/.claude/skills && cp -r /tmp/DB-GPT/assets/suites/mysql-ops-expert/skills/mysql-backup-restore ~/.claude/skills/mysql-backup-restoreRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/eosphoros-ai/DB-GPT /tmp/DB-GPT && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/DB-GPT/assets/suites/mysql-ops-expert/skills/mysql-backup-restore ~/.gemini/antigravity-cli/skills/mysql-backup-restoreAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install mysql-backup-restore in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
MySQL Backup & Recovery is an agent skill that assesses backup strategy and designs recovery plans for MySQL. It checks RPO and RTO, whether the full backup and binlog chain is complete, and whether recovery drills have been run. It sorts requests into four paths: strategy assessment, accidental-delete recovery, point-in-time recovery, and single-table restore.
For accidental deletes, the skill first asks the user to stop related writes, confirm the binlog covers the deletion time, and check for uncommitted transactions. It then counts affected rows from the binlog and recommends restoring to a shadow table or temporary instance before writing data back. It is aimed at DBAs and operations staff who manage MySQL recovery.
Written from the project's SKILL.md and checked against it.
What it can do
- Backup strategy assessmentChecks RPO and RTO, backup chain completeness, storage isolation and drill evidence.
- Accidental delete recoveryRanks recovery options from rolling back an open transaction to restoring from a temporary instance.
- Binlog impact analysisUses mysqlbinlog to extract deleted rows and count the affected rows.
- Point-in-time recoveryPlans a full backup restore followed by binlogs up to a target time, verified in isolation.
- Single-table restoreDescribes tablespace import or export from a temporary instance for one table.
- Recovery drill designRecommends how often to run recovery drills and how to measure actual RTO.
What you need
- MySQL instance with binary logs for point-in-time recovery
- Access to binlog files for accidental-delete analysis
- Read-only database account if a database connector is used
Try asking
- Assess whether our MySQL backups can meet our RPO and RTO targets.
- We deleted rows without a WHERE clause. Help me find them in the binlog.
- Plan a point-in-time restore of our database to yesterday at 10:00.
Good to know
- Writes back to production need business confirmation before they run.
- Single-table restore by tablespace import requires innodb_file_per_table to be enabled.
- Without a connected database, output is a report and command blocks saved to outputs/.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: assets/suites/mysql-ops-expert/skills/mysql-backup-restore/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md9 KB -
references/backup-strategy-checklist.md6 KB -
references/pitr-runbook.md8 KB
Alternatives to mysql-backup-restore
All alternatives →Creates, configures and manages datasets on the Hugging Face Hub, including SQL-based querying and transformation. Built for people who edit dataset content and metadata directly, alongside the HF MCP server.
Diagnoses and repairs gbrain's Postgres access when a command or MCP result shows a GBRAIN_DB_ACCESS marker, or when the operator reports the brain database is down. It runs the hardcoded gbrain db-repair ladder and verifies the result with a re-probe.
Manages clusters, instances, and backups for AlloyDB for PostgreSQL. Built for creating, configuring, and administering AlloyDB databases, not general PostgreSQL or Cloud SQL instances.
Writes, reviews and migrates Supabase logs queries against the ClickHouse logs table served by the logs.all.otel endpoint. Built for developers who write Logs Explorer SQL or convert older BigQuery logs queries.
Diagnoses and fixes slow Paperclip PostgreSQL queries using Cloud and Neon evidence, local benchmarks, regression tests, and a pull request with passing checks. Built for engineers working on Paperclip.
Guides AI assistants through Prisma 8 projects built on @prisma/orm-postgres, @prisma/orm-sqlite, or @prisma/orm-mongo. It covers data contracts, migrations, typed queries and runtime setup for developers on Prisma 8.
Compare with hugging-face-datasets, db-repair or alloydb-basics
mysql-backup-restore: common questions
Does it run restores on my database?
By default it outputs a report and step-by-step plan to outputs/. With a read-only database connection, it can check binlog continuity, row counts and table structure.
Can it recover accidentally deleted rows?
It analyzes the binlog to count deleted rows and recommends options such as rolling back an open transaction or restoring to a shadow table. It advises stopping related writes first.
What does it check in a backup strategy?
It checks RPO and RTO, whether the binlog chain has no gaps, backup storage isolation, backup verification and recovery drill records.
How do I install mysql-backup-restore?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is mysql-backup-restore free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is mysql-backup-restore safe to use?
It scores 91 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to mysql-backup-restore?
Similar skills: hugging-face-datasets, db-repair, alloydb-basics, clickhouse-logs-queries.
