Auto backup

From clowlove/Hermes-House · View interactive version

Auto backup is an AI agent skill from the GitHub repository clowlove/Hermes-House. Automated backup solution for databases, files, and cloud storage. Supports multiple destinations and incremental backups.

How to use this skill

Skill file

Auto Backup

Automated backup solution for databases, files, and cloud storage.

Features

Supported Sources

| Source | Type | Status |

|--------|------|--------|

| PostgreSQL | Database | ✅ |

| MySQL | Database | ✅ |

| MongoDB | Database | ✅ |

| Files | Directory | ✅ |

| Docker Volumes | Container | ✅ |

| Redis | Cache | ✅ |

Supported Destinations

| Destination | Type | Status |

|-------------|------|--------|

| AWS S3 | Cloud | ✅ |

| Google Cloud Storage | Cloud | ✅ |

| FTP/SFTP | Server | ✅ |

| Local | Disk | ✅ |

| Backblaze B2 | Cloud | ✅ |

Usage

Backup Database

# Backup PostgreSQL
hermes backup postgres \
  --host localhost \
  --database mydb \
  --output s3://my-bucket/backups/

# With encryption
hermes backup postgres --encrypt --password secret123

Backup Files

# Backup directory
hermes backup files /var/www/html \
  --dest s3://my-bucket/files/ \
  --exclude "node_modules,*.log"

Schedule Backup

# Daily at 2am
hermes backup schedule --cron "0 2 * * *" --task db-backup

# Hourly
hermes backup schedule --cron "0 * * * *" --task log-archive

Configuration

# backup-config.yml
backup:
  compress: gzip
  encryption: aes-256
  
sources:
  postgres:
    host: ${DB_HOST}
    port: 5432
    database: mydb
    
destinations:
  s3:
    bucket: my-backup-bucket
    region: us-east-1
    prefix: backups/

Restore

# Restore from backup
hermes backup restore s3://my-bucket/backups/postgres-2026-05-30.sql.gz

# List available backups
hermes backup list --source postgres

Pitfalls

  1. Storage Cost — Monitor cloud storage usage
  2. Retention — Set retention policies to save cost
  3. Test Restore — Regularly test backup restoration
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.