← Back to all products
$39
Backup & DR Toolkit
Automated backup scripts for databases, file systems, and cloud resources with DR runbooks and testing procedures.
DockerShellYAMLMarkdownJSONAWSPostgreSQL
Product Preview
Try the interactive reader and demo tools below, or get the full product with all content unlocked.
Interactive Reader (Free Preview) ⚙ Try Demo Tools Download Free SampleFile Structure 19 files
backup-disaster-recovery/
├── LICENSE
├── README.md
├── configs/
│ ├── backup-schedule.yaml
│ ├── notification.yaml
│ └── retention-policy.yaml
├── docker/
│ ├── backup-agent/
│ │ ├── Dockerfile
│ │ └── entrypoint.sh
│ └── docker-compose.yml
├── guides/
│ └── backup-strategy.md
├── runbooks/
│ ├── backup-verification-checklist.md
│ └── disaster-recovery-plan.md
└── scripts/
├── backup-docker-volumes.sh
├── backup-filesystem.sh
├── backup-mysql.sh
├── backup-postgres.sh
├── restore-filesystem.sh
├── restore-postgres.sh
└── verify-backups.sh
Documentation Preview README excerpt
Backup & Disaster Recovery Kit
Battle-tested backup scripts and disaster recovery runbooks for production infrastructure.
[](LICENSE)
[]()
[]()
Automate your backups, verify their integrity, and recover in minutes -- not hours.
What You Get
- 6 production backup & restore scripts covering PostgreSQL, MySQL, filesystems, and Docker volumes
- Backup verification with integrity checks, checksum validation, and test restores
- Configurable schedules & retention via YAML (daily, weekly, monthly, yearly)
- Multi-channel notifications (Slack, email, PagerDuty) on success or failure
- Docker-based backup agent for containerized environments
- Disaster recovery runbooks with RPO/RTO analysis and step-by-step procedures
- Strategic guide covering the 3-2-1 rule, encryption, compliance, and cross-region replication
File Tree
backup-disaster-recovery/
├── README.md
├── manifest.json
├── LICENSE
├── scripts/
│ ├── backup-postgres.sh # pg_dump + compression + S3 upload
│ ├── backup-mysql.sh # mysqldump + compression + S3 upload
│ ├── backup-filesystem.sh # rsync/rclone incremental + encryption
│ ├── backup-docker-volumes.sh # Stop, tar, upload, restart
│ ├── restore-postgres.sh # Download from S3 + pg_restore + verify
│ ├── restore-filesystem.sh # Download, decrypt, restore
│ └── verify-backups.sh # Integrity check + test restore
├── configs/
│ ├── backup-schedule.yaml # Cron schedules for all backup types
│ ├── retention-policy.yaml # Retention rules by tier
│ └── notification.yaml # Slack, email, PagerDuty config
├── docker/
│ ├── backup-agent/
│ │ ├── Dockerfile # Lightweight backup agent
│ │ └── entrypoint.sh # Agent entrypoint
│ └── docker-compose.yml # Agent + MinIO for testing
├── runbooks/
│ ├── disaster-recovery-plan.md # RPO/RTO + step-by-step recovery
│ └── backup-verification-checklist.md
└── guides/
└── backup-strategy.md # 3-2-1 rule, encryption, compliance
Getting Started
1. Configure your environment
# Copy and edit the config files
cp configs/backup-schedule.yaml configs/backup-schedule.local.yaml
*... continues with setup instructions, usage examples, and more.*
Code Sample .yaml preview
configs/backup-schedule.yaml
# ============================================================================
# Backup Schedule Configuration
# Part of: Backup & Disaster Recovery Kit by Datanest Digital
# ============================================================================
# Define cron schedules for each backup type. These schedules are used by
# the backup agent container or can be loaded into your system crontab.
#
# Cron format: minute hour day-of-month month day-of-week
# ============================================================================
# ---------------------------------------------------------------------------
# Global settings
# ---------------------------------------------------------------------------
global:
timezone: "UTC"
# Maximum concurrent backup jobs (prevent resource contention)
max_parallel_jobs: 2
# Lock file directory (prevents duplicate runs)
lock_dir: "/var/run/backup-agent"
# Log directory
log_dir: "/var/log/backups"
# ---------------------------------------------------------------------------
# PostgreSQL backups
# ---------------------------------------------------------------------------
postgres:
# Full backup every night at 2:00 AM UTC
full_backup:
schedule: "0 2 * * *"
script: "./scripts/backup-postgres.sh"
args:
host: "${POSTGRES_HOST}"
port: "5432"
database: "${POSTGRES_DATABASE}"
bucket: "${BACKUP_BUCKET}/postgres"
compress: "zstd"
timeout: 3600 # 1 hour max
retry:
attempts: 3
delay: 300 # 5 minutes between retries
# WAL archiving (continuous) -- configure in postgresql.conf
# archive_command = 'aws s3 cp %p s3://backups/postgres/wal/%f'
# ---------------------------------------------------------------------------
# MySQL backups
# ---------------------------------------------------------------------------
mysql:
full_backup:
schedule: "0 3 * * *" # 3:00 AM UTC daily
# ... 87 more lines ...