From aj-geddes-useful-ai-prompts-4
Implements backup and restore strategies for disaster recovery including backup types, retention policies, restore testing, and RTO/RPO. Use when setting up automated backups or planning recovery procedures.
How this skill is triggered — by the user, by Claude, or both
Slash command
/aj-geddes-useful-ai-prompts-4:database-backup-restoreThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
- [Overview](#overview)
Implement comprehensive backup and disaster recovery strategies. Covers backup types, retention policies, restore testing, and recovery time objectives (RTO/RPO).
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
Detailed implementations in the references/ directory:
| Guide | Contents |
|---|---|
| Full Database Backup | Full Database Backup |
| Incremental & Differential Backups | Incremental & Differential Backups |
| Full Database Backup | Full Database Backup |
| Binary Log Backups | Binary Log Backups |
| PostgreSQL Restore | PostgreSQL Restore |
| MySQL Restore | MySQL Restore |
npx claudepluginhub aj-geddes/useful-ai-promptsGuides PostgreSQL/MySQL backup and recovery: PITR via WAL archiving, physical/logical backups, RPO/RTO planning, S3/local storage.
Generates backup scripts for PostgreSQL, MySQL, MongoDB, and SQLite with scheduling, compression, encryption, retention policies, and restore procedures.
Provides backup strategies and disaster recovery for PostgreSQL, MySQL, MongoDB, Redis with full/incremental/PITR options, verification scripts, and RPO/RTO planning. Use for implementing backups or troubleshooting recovery.