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/kiurakku/cursor-kit-for-ai --skill backup-restore-kiurakku
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: backup-restore
Source: https://github.com/kiurakku/cursor-kit-for-ai/tree/main/plugins/devops/skills/backup-restore
Command: npx skills add https://github.com/kiurakku/cursor-kit-for-ai --skill backup-restore-kiurakku

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Most teams have backup jobs running but have never verified a restore actually works, leaving them exposed to silent backup failures, missing offsite copies, and unknown recovery times when disaster strikes. ## Core Features & Use Cases - RPO/RTO Definition: Translate business loss tolerance into concrete backup frequency, WAL archiving, and restore method decisions. - Backup Implementation: Provides pg_dump commands, 3-2-1 offsite rules with rclone/S3, encryption at rest, retention policies, and monitoring for failure, absence, and size anomalies. - Restore Drills: Scripted quarterly restore tests into throwaway Docker containers with verification queries, plus pre-migration snapshot rituals. - Use Case: Before a risky database migration, run the pre-migration snapshot ritual to capture a verified restorable dump and a provider-level disk snapshot, so a failed migration can be rolled back in minutes. ## Quick Start Audit my Postgres backup setup and tell me whether we can actually restore, including our real RPO and 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?▼

Run pg_dump through docker compose exec with the custom format flag: docker compose exec -T db pg_dump -Fc -U $POSTGRES_USER $POSTGRES_DB > backup_$(date +%F).dump. The custom format enables selective and parallel restores later.

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

Keep 3 copies of your 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, Backblaze B2, or rsync.net using a tool like rclone.

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

Restore into a throwaway Docker container, never against production. Run pg_restore inside a temporary postgres container, then verify row counts of critical tables and the most recent timestamp against production values.

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 during recovery, which determines whether you use pg_restore or faster replica promotion.

Why do backup jobs fail silently without anyone noticing?▼

Cron jobs often fail without alerting, producing zero-byte or truncated dumps. Monitor for job failure, absence of new backups within 25 hours, and size anomalies like a dump shrinking by 50 percent.

When should I use pgBackRest instead of pg_dump?▼

Use pgBackRest or physical backups when databases grow large enough that logical dumps take hours, or when you need point-in-time recovery via WAL archiving. pg_dump suits smaller databases with nightly schedules.