Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
aj-geddes avatar

Database Backup Restore

  • 501 installs
  • 305 repo stars
  • Updated March 4, 2026
  • aj-geddes/useful-ai-prompts

database-backup-restore is an agent skill that helps developers implement reliable database backup and restore procedures for disaster recovery and production data protection.

About

database-backup-restore is an agent skill from aj-geddes/useful-ai-prompts that guides comprehensive backup and disaster recovery planning for production databases. The skill covers backup types, retention policies, automated backup setup, restore testing, and recovery time objectives including RTO and RPO targets. Developers reach for database-backup-restore when creating backup plans, validating restore procedures, or automating scheduled snapshots before an incident occurs. The workflow emphasizes tested recovery paths so teams can meet defined recovery windows rather than discovering gaps during outages.

  • Comprehensive backup strategy implementation including full, incremental, and point-in-time recovery
  • Disaster recovery planning with defined RTO and RPO targets
  • Automated backup scheduling and cross-region replication patterns
  • Restore testing procedures and validation checklists
  • Retention policy templates for compliance and cost optimization

Database Backup Restore by the numbers

  • 501 all-time installs (skills.sh)
  • Ranked #370 of 1,039 Cloud & Infrastructure skills by installs in the Skillselion catalog
  • Data as of Aug 5, 2026 (Skillselion catalog sync)
npx skills add https://github.com/aj-geddes/useful-ai-prompts --skill database-backup-restore

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs501
repo stars305
Last updatedMarch 4, 2026
Repositoryaj-geddes/useful-ai-prompts

How do you set up database backup and restore?

Implement reliable backup and restore procedures that protect production data and enable quick disaster recovery.

Who is it for?

Developers and DBAs responsible for production database reliability who need structured disaster recovery planning.

Skip if: Greenfield schema design or one-off local development databases with no recovery requirements.

When should I use this skill?

A task involves backup automation, disaster recovery planning, restore testing, or defining RTO and RPO for databases.

What you get

Backup automation configs, retention policies, restore test procedures, and documented RTO/RPO targets.

  • backup automation plan
  • restore runbook
  • RTO/RPO documentation

Files

SKILL.mdMarkdownGitHub ↗

Database Backup & Restore

Table of Contents

Overview

Implement comprehensive backup and disaster recovery strategies. Covers backup types, retention policies, restore testing, and recovery time objectives (RTO/RPO).

When to Use

  • Backup automation setup
  • Disaster recovery planning
  • Recovery testing procedures
  • Backup retention policies
  • Point-in-time recovery (PITR)
  • Cross-region backup replication
  • Compliance and audit requirements

Quick Start

pg_dump - Text Format:

# Simple full backup
pg_dump -h localhost -U postgres -F p database_name > backup.sql

# With compression
pg_dump -h localhost -U postgres -F p database_name | gzip > backup.sql.gz

# Backup with verbose output
pg_dump -h localhost -U postgres -F p -v database_name > backup.sql 2>&1

# Exclude specific tables
pg_dump -h localhost -U postgres database_name \
  --exclude-table=temp_* --exclude-table=logs > backup.sql

Reference Guides

Detailed implementations in the references/ directory:

GuideContents
Full Database BackupFull Database Backup
Incremental & Differential BackupsIncremental & Differential Backups
Full Database BackupFull Database Backup
Binary Log BackupsBinary Log Backups
PostgreSQL RestorePostgreSQL Restore
MySQL RestoreMySQL Restore

Best Practices

✅ DO

  • Follow established patterns and conventions
  • Write clean, maintainable code
  • Add appropriate documentation
  • Test thoroughly before deploying

❌ DON'T

  • Skip testing or validation
  • Ignore error handling
  • Hard-code configuration values

Related skills

How it compares

Choose database-backup-restore over schema documentation skills when the priority is data durability and recovery rather than describing table structure.

FAQ

What does database-backup-restore cover?

database-backup-restore covers backup types, retention policies, automated backup setup, restore testing, and RTO/RPO planning. The skill helps developers build tested recovery procedures for production database incidents.

When should teams use database-backup-restore?

Teams should use database-backup-restore when setting up backup automation, planning disaster recovery, or validating restore procedures. The skill is aimed at production environments where data loss has real operational impact.

Cloud & Infrastructureinframonitoring

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.