backup-restore

Designs and audits database backup strategies with tested restore procedures and RPO/RTO targets.

15|3|Updated Jul 9, 2026
One-click install
npx skills add https://github.com/thefear078/cursor-kit-for-ai --skill backup-restore-thefear078
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: backup-restore
Source: https://github.com/thefear078/cursor-kit-for-ai/tree/main/plugins/devops/skills/backup-restore
Command: npx skills add https://github.com/thefear078/cursor-kit-for-ai --skill backup-restore-thefear078

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Most teams have backup jobs but no proof those backups actually restore, leaving them exposed to silent failures, ransomware, and untested disaster recovery assumptions. ## Core Features & Use Cases - RPO/RTO Definition: Translate business loss tolerance into concrete backup frequency, WAL archiving, and restore method decisions. - Backup Implementation: Set up Postgres dumps, offsite 3-2-1 replication with rclone, encryption at rest, retention policies, and failure/absence monitoring. - Restore Drills: Scripted quarterly restore tests into throwaway Docker containers that measure real RTO and data recency. - Use Case: Before a risky database migration, run the pre-migration snapshot ritual to capture a verified restorable pg_dump plus a provider disk snapshot, so a broken migration can be rolled back in minutes. ## Quick Start Audit my current Postgres backup setup and tell me whether we can actually restore within a one-hour RTO.

Frequently Asked Questions about backup-restore

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I back up a Postgres database running in Docker Compose?▼

Run docker compose exec -T db pg_dump -Fc -U $POSTGRES_USER $POSTGRES_DB and redirect output to a dated .dump file. The custom format (-Fc) enables selective and parallel restores with pg_restore later.

What is the 3-2-1 backup rule for databases?▼

The 3-2-1 rule means keeping 3 copies of data on 2 different media with 1 copy offsite. A backup stored on the same VPS dies with that VPS, so push dumps to S3, B2, or rsync.net using a tool like rclone.

How do I test that a Postgres backup actually restores?▼

Run a restore drill: spin up a throwaway postgres Docker container, copy the dump in, run pg_restore, then verify row counts and the most recent timestamp against production. Schedule this quarterly and record the restore duration as your real RTO.

What is the difference between RPO and RTO in backup planning?▼

RPO is how much data you can afford to lose, which drives backup frequency and WAL archiving. RTO is how long you can be down while restoring, which determines whether you use pg_restore or faster replica promotion.

Why do backup jobs fail silently and how do I detect it?▼

Backups fail silently through cron misconfiguration, full disks, or credential expiry. Alert on job failure, on absence of a new backup within 25 hours, and on size anomalies like 0-byte or sharply shrinking dumps.

When should I use physical backups instead of pg_dump?▼

Use physical backups with pgBackRest or replica snapshots when logical dumps take hours on large databases. For low RPO requirements, add WAL archiving to enable point-in-time recovery regardless of dump method.