aj-geddes avatar

Backup Disaster Recovery

This handles backup automation and disaster recovery planning for databases and infrastructure. You get example scripts for PostgreSQL backups with retention policies, cross-region failover configs, and recovery procedure templates. It's pitched at the operational level: setting up cron jobs, defining RTOs, testing restores. The reference guides cover database backups, DR plan templates, and failover setups. Honestly, the real value is in forcing you to document and test your recovery procedures, because most teams only discover their backups don't work when they desperately need them. The examples lean Kubernetes-native but the principles apply anywhere you need to not lose data.

skills.sh installs
626
GitHub stars
379
last updated
Aug 21, 2026

Install

$ npx -y skills add aj-geddes/useful-ai-prompts --skill backup-disaster-recovery --agent claude-code

Installs into .claude/skills of the current project.

Files

Backup and Disaster Recovery

Table of Contents

Overview

Design and implement comprehensive backup and disaster recovery strategies to ensure data protection, business continuity, and rapid recovery from infrastructure failures.

When to Use

  • Data protection and compliance
  • Business continuity planning
  • Disaster recovery planning
  • Point-in-time recovery
  • Cross-region failover
  • Data migration
  • Compliance and audit requirements
  • Recovery time objective (RTO) optimization

Quick Start

Minimal working example:

# postgres-backup-cronjob.yaml
apiVersion: v1
kind: ConfigMap
metadata:
  name: backup-script
  namespace: databases
data:
  backup.sh: |
    #!/bin/bash
    set -euo pipefail

    BACKUP_DIR="/backups/postgresql"
    RETENTION_DAYS=30
    DB_HOST="${POSTGRES_HOST}"
    DB_PORT="${POSTGRES_PORT:-5432}"
    DB_USER="${POSTGRES_USER}"
    DB_PASSWORD="${POSTGRES_PASSWORD}"

    export PGPASSWORD="$DB_PASSWORD"

    # Create backup directory
    mkdir -p "$BACKUP_DIR"

Sponsors

Details

Repository
github.com/aj-geddes/useful-ai-prompts
Categories
AI & Agent Building, Cloud & Infrastructure
First seen
Jun 3, 2026

More from aj-geddes/useful-ai-prompts

All 258
1aj-geddes avatargithub-actions-workflowaj-geddes/useful-ai-promptsBuild comprehensive GitHub Actions workflows for CI/CD, testing, security, and deployment. Master workflows, jobs, steps, and conditional execution.626skills.sh installs
2TheQtCompanyRnD avatarqt-cmake-projectTheQtCompanyRnD/agent-skillsUse to generate or update Qt 6 CMake projects or edit CMakeLists.txt, add sources/resources or define targets (executable, QML module, library).625skills.sh installs
3aj-geddes avatarcolor-accessibilityaj-geddes/useful-ai-promptsDesign color palettes that are accessible to all users including those with color blindness. Ensure sufficient contrast, meaningful use of color, and inclusive 624skills.sh installs
4aj-geddes avatarfastapi-developmentaj-geddes/useful-ai-promptsBuild high-performance FastAPI applications with async routes, validation, dependency injection, security, and automatic API documentation. Use when developing 624skills.sh installs
5aj-geddes avatarstatic-code-analysisaj-geddes/useful-ai-promptsImplement static code analysis with linters, formatters, and security scanners to catch bugs early. Use when enforcing code standards, detecting security vulner622skills.sh installs
6aj-geddes avatarunit-testing-frameworkaj-geddes/useful-ai-promptsWrite comprehensive unit tests with high coverage using testing frameworks like Jest, pytest, JUnit, or RSpec. Use when writing tests for functions, classes, co622skills.sh installs