backup-strategy

Design backup and disaster recovery strategies with 3-2-1 rule, RTO/RPO targets, and automated restore testing.

1|Updated Mar 21, 2026
One-click install
npx skills add https://github.com/kalilurrahman/kr-claudiator-skills-original-prompts --skill backup-strategy-kalilurrahman
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: backup-strategy
Source: https://github.com/kalilurrahman/kr-claudiator-skills-original-prompts/tree/main/02-devops-infra/backup-strategy
Command: npx skills add https://github.com/kalilurrahman/kr-claudiator-skills-original-prompts --skill backup-strategy-kalilurrahman

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires boto3.

What problem does it solve? Untested or ad-hoc backups fail when disaster strikes, leaving teams without recovery procedures, undefined RTO/RPO targets, or retention policies that meet compliance requirements. ## Core Features & Use Cases - RTO/RPO Planning: Define recovery time and recovery point objectives per system criticality, with cost tradeoffs for hot, warm, and cold standby tiers. - Backup Automation: Ready-to-use scripts for PostgreSQL, MySQL, and rsync-based incremental backups with S3 upload, integrity verification, and retention rotation. - Disaster Recovery Runbooks: Step-by-step recovery procedures, GFS retention policies, S3 lifecycle rules, and ransomware protection via immutable and air-gapped backups. - Use Case: A team running a production PostgreSQL database needs a compliant backup plan. Use this Skill to define a 4-hour RTO and 15-minute RPO, automate hourly WAL archiving to S3, and schedule quarterly restore drills. ## Quick Start Ask the AI to design a backup and disaster recovery strategy for your production PostgreSQL database with a 4-hour RTO and 15-minute RPO.

Frequently Asked Questions about backup-strategy

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

FAQPage Schema
How do I design a backup strategy with RTO and RPO targets?

Classify data by criticality, then assign RTO (how fast you must recover) and RPO (acceptable data loss) per system. Lower targets cost more: a 1-hour RTO with 5-minute RPO needs hot standby and real-time replication, while 24-hour targets work with daily snapshots.

What is the 3-2-1 backup rule?

The 3-2-1 rule requires three copies of data, on two different media types, with one copy stored offsite. This protects against single points of failure, ransomware, and regional disasters by combining local disk, cloud storage like S3, and an offsite datacenter.

How do I automate PostgreSQL backups with S3?

Use pg_dump with the custom format, compress the output, and upload to S3 with the AWS CLI. The provided script also verifies archive integrity with gunzip, deletes local backups older than 7 days, and prunes S3 objects older than 30 days.

What is the difference between incremental and differential backups?

Incremental backups capture changes since the last backup of any type, minimizing storage but requiring the full backup plus all incrementals to restore. Differential backups capture changes since the last full backup, using more space but needing only two files to restore.

How do I protect backups from ransomware?

Use S3 Object Lock in governance mode to make backups immutable for a retention period, preventing deletion even by privileged accounts. Additionally, maintain air-gapped offline backups on disconnected external drives that ransomware cannot reach.

Why should backup restores be tested regularly?

Untested backups frequently fail due to corruption, missing dependencies, or incomplete archives. The Skill includes an automated restore test that restores to a temporary database and verifies table counts, with quarterly restore drills recommended.