Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

automating-database-backups

Skill by jeremylongshore

Automate Backups generates backup, scheduling, validation and restore scripts for PostgreSQL, MySQL, MongoDB and SQLite. It is for developers and operators who want database backups with compression, encryption and retention policies in Claude Code.

  • Score 79
  • 3k stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install automating-database-backups

Built from the published package, never by AI.

git clone --depth 1 https://github.com/jeremylongshore/tons-of-skills-marketplace /tmp/tons-of-skills-marketplace && mkdir -p ~/.claude/skills && cp -r /tmp/tons-of-skills-marketplace/skills/.curated/automating-database-backups ~/.claude/skills/automating-database-backups

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install automating-database-backups in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

This skill helps an AI assistant create production-oriented database backup automation. It covers PostgreSQL (pg_dump), MySQL (mysqldump), MongoDB (mongodump) and SQLite. The assistant first asks for the database type, connection details, schedule, retention period, encryption need and backup destination.

The skill then uses helper scripts to generate a backup script, create cron entries, validate backup files and produce a matching restore script. The examples show compression, optional GPG encryption, cron schedules and find-based retention cleanup. It is aimed at developers and operators who need scheduled database backups and disaster recovery procedures. The skill is designed for Claude Code.

Written from the project's SKILL.md and checked against it.

What it can do

  • Backup script generationGenerates database-specific backup shell scripts with compression and encryption.
  • Cron schedulingCreates cron entries that run a backup script on a chosen schedule.
  • Backup validationRuns integrity checks on a backup file for a given database type.
  • Restore script generationCreates a restore script that matches each generated backup script.
  • Retention policiesShows find-based cleanup for daily, weekly and monthly backup folders.
  • Requirements gatheringAsks for database type, schedule, retention, encryption and destination first.

What you need

  • Claude Code
  • Python 3
  • pg_dump, mysqldump or mongodump, depending on the database
  • gpg for optional encryption
  • cron for scheduling

Try asking

  • Create a nightly PostgreSQL backup script for my mydb database with GPG encryption
  • Schedule a daily 2 AM backup for my MySQL database using cron
  • Generate a matching restore script for my MongoDB backup

Good to know

  • The helper scripts it calls are not included in the source text.
  • The examples write to local paths; S3 and GCS are listed only as options to ask about.
  • Encryption is shown as optional in the PostgreSQL example.
  • Retention examples use find commands on local directories.

Security check

B
  • Allowed to use Write, Edit without limitsIn SKILL.md

Checked automatically: skills/.curated/automating-database-backups/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

Allowed tools: ReadWriteEditGrepGlobBash(pg_dump:*)Bash(mysqldump:*)

  • SKILL.md6 KB
  • assets/README.md64 B
  • config/settings.yaml1 KB
  • references/README.md606 B
  • references/backup_best_practices.md7 KB
Show all 16 files
  • references/cron_syntax.md6 KB
  • references/mongodb_backup_restore.md6 KB
  • references/mysql_backup_restore.md5 KB
  • references/postgresql_backup_restore.md5 KB
  • references/sqlite_backup_restore.md7 KB
  • scripts/README.md495 B
  • scripts/backup-monitoring.sh927 B
  • scripts/backup_scheduler.py10 KB
  • scripts/backup_script_generator.py12 KB
  • scripts/backup_validator.py14 KB
  • scripts/restore_script_generator.py15 KB

Alternatives to automating-database-backups

All alternatives →
hugging-face-datasetssickn33
94

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.

AAA Skill 50k
db-repairgarrytan
94

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.

AAA Skill 34k
alloydb-basicsgoogle
94

Manages clusters, instances, and backups for AlloyDB for PostgreSQL. Built for creating, configuring, and administering AlloyDB databases, not general PostgreSQL or Cloud SQL instances.

AAA Skill 26k
clickhouse-logs-queriessupabase
94

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.

AAA Skill 116k
fix-slow-queriespaperclipai
94

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.

AAA Skill 119k
prisma-8prisma
94

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.

AAA Skill 48k

Compare with hugging-face-datasets, db-repair or alloydb-basics

automating-database-backups: common questions

Which databases does this backup skill support?

The source says it supports PostgreSQL (pg_dump), MySQL (mysqldump), MongoDB (mongodump) and SQLite.

Does it encrypt backups?

Yes, the PostgreSQL example encrypts the dump with GPG using AES256, and encryption is listed as a requirement the user can choose. The source marks GPG encryption as optional in that example.

What does the skill generate?

It generates backup scripts, cron entries, restore scripts and validation reports for backup files.

How do I install automating-database-backups?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is automating-database-backups free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is automating-database-backups safe to use?

It scores 79 of 100. Grades: maintenance A, licence A, quality A. Security check: grade B (allowed to use write, edit without limits). Review the code before you install. How grades work.

What are alternatives to automating-database-backups?

Similar skills: hugging-face-datasets, db-repair, alloydb-basics, clickhouse-logs-queries.

automating-database-backups Install

Add to stack

Loading.