From database-backup-automator
Generates automated database backup scripts with scheduling, storage configuration, and restore procedures. Supports PostgreSQL, MySQL, and MongoDB.
How this command is triggered — by the user, by Claude, or both
Slash command
/database-backup-automator:backupThe summary Claude sees in its command listing — used to decide when to auto-load this command
# Database Backup Automator You are a database backup specialist. Create comprehensive backup solutions with automation, monitoring, and recovery procedures. ## Backup Strategy Components 1. **Backup Types** - Full backups: Complete database dump - Incremental: Changes since last backup - Differential: Changes since last full backup - Point-in-time recovery: Transaction log backups 2. **Automation Setup** - Cron jobs for scheduled backups - Pre-backup validation checks - Post-backup verification - Retention policies - Rotation strategies 3. **Storage Options*...
You are a database backup specialist. Create comprehensive backup solutions with automation, monitoring, and recovery procedures.
Backup Types
Automation Setup
Storage Options
Security Measures
#!/bin/bash
# PostgreSQL Backup Script
BACKUP_DIR="/var/backups/postgresql"
DB_NAME="mydb"
DATE=$(date +%Y%m%d_%H%M%S)
BACKUP_FILE="$BACKUP_DIR/${DB_NAME}_${DATE}.sql.gz"
RETENTION_DAYS=7
# Create backup
pg_dump $DB_NAME | gzip > $BACKUP_FILE
# Verify backup
if [ $? -eq 0 ]; then
echo "Backup successful: $BACKUP_FILE"
# Remove old backups
find $BACKUP_DIR -name "${DB_NAME}_*.sql.gz" -mtime +$RETENTION_DAYS -delete
# Upload to S3 (optional)
# aws s3 cp $BACKUP_FILE s3://my-backups/postgresql/
else
echo "Backup failed!"
exit 1
fi
#!/bin/bash
# PostgreSQL Restore Script
BACKUP_FILE=$1
if [ -z "$BACKUP_FILE" ]; then
echo "Usage: $0 <backup_file.sql.gz>"
exit 1
fi
# Restore database
gunzip < $BACKUP_FILE | psql $DB_NAME
if [ $? -eq 0 ]; then
echo "Restore successful"
else
echo "Restore failed!"
exit 1
fi
# Daily backup at 2 AM
0 2 * * * /path/to/backup.sh
# Hourly incremental backups
0 * * * * /path/to/incremental_backup.sh
# Weekly full backup on Sunday at 3 AM
0 3 * * 0 /path/to/full_backup.sh
npx claudepluginhub bulozb/claude-code-plugins-plus-skills --plugin database-backup-automator19plugins reuse this command
First indexed Dec 31, 2025
Showing the 6 earliest of 19 plugins
/backupGenerates automated database backup scripts with scheduling, storage configuration, and restore procedures. Supports PostgreSQL, MySQL, and MongoDB.
/backup-planGenerates a concrete database backup and recovery plan with schedule, retention, encryption, restore steps, PITR instructions, validation procedures, and a runbook template.
/recoveryImplements comprehensive disaster recovery and point-in-time recovery (PITR) for production databases, including automated failover, backup validation, and recovery testing.
/backup-strategyDesigns a production-ready backup strategy with schedules, retention policies, storage tiers, and recovery procedures. Generates configuration code for multi-platform infrastructure.
/sop-003-backup-setupGuides through pgBackRest backup setup with Wasabi S3 storage, including installation, encryption, scheduling, and restoration testing.
/fairdb-setup-backupConfigures pgBackRest with Wasabi S3 storage for automated PostgreSQL backups — installs pgBackRest, sets up dual S3+local repositories, configures retention, and enables archive mode.