database-backups
Skill by sickn33
Designs database backup and recovery procedures for PostgreSQL, MySQL and MongoDB. Covers scheduling, offsite upload, retention and restore testing. Aimed at operators and DevOps teams planning disaster recovery.
Install database-backups
Built from the published package, never by AI.
git clone --depth 1 https://github.com/sickn33/agentic-awesome-skills /tmp/agentic-awesome-skills && mkdir -p ~/.claude/skills && cp -r /tmp/agentic-awesome-skills/skills/database-backups ~/.claude/skills/database-backupsRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/sickn33/agentic-awesome-skills /tmp/agentic-awesome-skills && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/agentic-awesome-skills/skills/database-backups ~/.gemini/antigravity-cli/skills/database-backupsAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill is a docs-only guide for setting up database backups for PostgreSQL, MySQL and MongoDB. It covers logical and physical backup commands, restore commands, uploads to S3-compatible storage with lifecycle retention, encrypted and deduplicated restic backups, cron schedules and a weekly restore test. The source states that helper scripts and templates are not bundled, and that its scripts are partial.
The source says it fits teams deploying a new database, automating nightly or hourly backups, or building disaster recovery runbooks. It advises confirming RPO, RTO, retention and rollback targets first. It also treats restore-test row counts as application-specific smoke checks. The guide is written for operators and DevOps engineers who design backup and recovery procedures.
Written from the project's SKILL.md and checked against it.
What it can do
- PostgreSQL backupsShows logical pg_dump and physical pg_basebackup backups, plus restore commands.
- MySQL backupsShows mysqldump and Percona XtraBackup backups, plus restore steps.
- MongoDB backupsShows mongodump backups with compression and mongorestore commands.
- S3 uploadShows copying backups to S3 with server-side encryption and storage classes.
- Retention lifecycleProvides an S3 lifecycle policy with transition to Glacier and expiration.
- Restic backupsShows encrypted, deduplicated backups to S3 with keep-based pruning.
- Cron schedulingProvides example cron entries for nightly backups, uploads and cleanup.
- Recovery testingProvides a weekly script that restores a PostgreSQL dump into a temporary container.
What you need
- pg_dump, mysqldump or mongodump client tools
- AWS CLI or restic for remote storage
- cron or systemd timers for scheduling
- An S3 bucket or S3-compatible endpoint
- Docker for the recovery test script
Try asking
- Write a nightly pg_dump script with retention for my PostgreSQL database
- Create an S3 lifecycle policy that moves backups to Glacier after 30 days
- Draft a weekly restore test for my PostgreSQL backup in a temporary container
Good to know
- Docs-only: helper scripts and templates are not bundled.
- Example scripts are partial and need review before use.
- Restore-test row counts are not full recovery proof.
- The lifecycle policy replacement applies to the whole configured bucket.
Security check
C- Asks for administrator rights (sudo)In
skills/database-backups/SKILL.md:sudo
Checked automatically: skills/database-backups/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md13 KB
Alternatives to database-backups
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
database-backups: common questions
Does this skill include ready-to-run backup scripts?
The source says helper scripts and templates are not bundled. Its shell examples are partial and are meant to be adapted.
Which databases does this backup guide cover?
It covers PostgreSQL, MySQL and MongoDB. It also mentions storage-level snapshots and transaction log shipping as backup types.
Does a restore test prove that a backup is recoverable?
No. The source says restore-test row counts are application-specific smoke checks, not full recovery proof.
How do I install database-backups?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is database-backups free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is database-backups safe to use?
It scores 89 of 100. Grades: maintenance A, licence A, quality A. Security check: grade C (asks for administrator rights (sudo)). Review the code before you install. How grades work.
What are alternatives to database-backups?
Similar skills: hugging-face-datasets, db-repair, alloydb-basics, clickhouse-logs-queries.
