[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6F7JWKTVWAXF0STF8SKDGHK":3,"skill-same:01M6F7JWKTVWAXF0STF8SKDGHK":73},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":39,"linkOnly":40,"markdownContent":41,"markdownBody":42,"frontMatter":43,"refName":50,"commitSha":51,"skillDirectory":52,"forksCount":53,"repositoryHtmlUrl":54,"repositoryHomepageUrl":55,"ownerHtmlUrl":56,"ownerBlogUrl":6,"ownerDescription":57,"updatedAt":58,"install":59,"resources":72},"01M6F7JWKTVWAXF0STF8SKDGHK","automating-database-backups",null,"Automate database backup processes with scheduling, compression, and encryption.\nSupports PostgreSQL (pg_dump), MySQL (mysqldump), MongoDB (mongodump), and SQLite.\nGenerates production-ready backup scripts with retention policies and restore procedures.\nTrigger: \"automate database backups\", \"schedule backups\", \"create backup script\", \"disaster recovery\". Use when working with automating database backups. Trigger with 'automating', 'database', 'backups'.","ComeOnOliver\u002Fskillshub","ComeOnOliver","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F43215937?v=4","01M6E5JNFECJAAVFE0W7SMWWD2","Haoran Shu","01M6E5JNNDQS7AJZDYFQ8TPZCK",67,"MIT","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fjeremylongshore\u002Fclaude-code-plugins-plus-skills\u002Fautomating-database-backups\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38],"database backups","database","Automating Database Backups","read","retention","scripts","io","gpg","ready","edit","write","create","schedule","Bash","sqlite","mongodb","encryption","postgresql","mysql","code","2026-11-10 10:12:30",false,"---\nname: automating-database-backups\ndescription: |\n  Automate database backup processes with scheduling, compression, and encryption.\n  Supports PostgreSQL (pg_dump), MySQL (mysqldump), MongoDB (mongodump), and SQLite.\n  Generates production-ready backup scripts with retention policies and restore procedures.\n  Trigger: \"automate database backups\", \"schedule backups\", \"create backup script\", \"disaster recovery\". Use when working with automating database backups. Trigger with 'automating', 'database', 'backups'.\nallowed-tools: Read, Write, Edit, Grep, Glob, Bash(pg_dump:*), Bash(mysqldump:*), Bash(mongodump:*), Bash(cron:*), Bash(gpg:*)\nversion: 2.0.0\nauthor: Jeremy Longshore \u003Cjeremy@intentsolutions.io>\nlicense: MIT\ncompatible-with: claude-code, codex, openclaw\ntags: [database, postgresql, mysql, mongodb]\n\n---\n# Database Backup Automation\n\nGenerate production-ready backup scripts for PostgreSQL, MySQL, MongoDB, and SQLite with compression, encryption, scheduling, and retention policies.\n\n## Quick Start\n\n### PostgreSQL Backup\n```bash\n#!\u002Fbin\u002Fbash\nset -euo pipefail\nBACKUP_DIR=\"\u002Fvar\u002Fbackups\u002Fpostgresql\"\nDB_NAME=\"mydb\"\nDATE=$(date +%Y%m%d_%H%M%S)\nBACKUP_FILE=\"${BACKUP_DIR}\u002F${DB_NAME}_${DATE}.sql.gz\"\n\npg_dump -h localhost -U postgres -d \"$DB_NAME\" \\\n  --format=custom \\\n  --compress=9 \\\n  --file=\"$BACKUP_FILE\"\n\n# Encrypt with GPG (optional)\ngpg --symmetric --cipher-algo AES256 --batch --passphrase-file \u002Fetc\u002Fbackup.key \"$BACKUP_FILE\"\nrm \"$BACKUP_FILE\"\n```\n\n### MySQL Backup\n```bash\n#!\u002Fbin\u002Fbash\nBACKUP_DIR=\"\u002Fvar\u002Fbackups\u002Fmysql\"\nDB_NAME=\"mydb\"\nDATE=$(date +%Y%m%d_%H%M%S)\n\nmysqldump -h localhost -u root -p\"${MYSQL_PASSWORD}\" \\\n  --single-transaction \\\n  --routines \\\n  --triggers \\\n  \"$DB_NAME\" | gzip > \"${BACKUP_DIR}\u002F${DB_NAME}_${DATE}.sql.gz\"\n```\n\n### MongoDB Backup\n```bash\n#!\u002Fbin\u002Fbash\nmongodump --uri=\"mongodb:\u002F\u002Flocalhost:27017\" \\  # 27017: MongoDB port\n  --db=mydb \\\n  --out=\u002Fvar\u002Fbackups\u002Fmongodb\u002F$(date +%Y%m%d_%H%M%S) \\\n  --gzip\n```\n\n## Instructions\n\n### Step 1: Gather Requirements\nAsk the user for:\n- Database type (PostgreSQL, MySQL, MongoDB, SQLite)\n- Database connection details (host, port, database name)\n- Backup schedule (cron expression or frequency)\n- Retention policy (days to keep)\n- Encryption requirement (yes\u002Fno)\n- Backup destination (local path, S3, GCS)\n\n### Step 2: Generate Backup Script\nUse `scripts\u002Fbackup_script_generator.py` to create a customized backup script:\n```bash\npython3 ${CLAUDE_SKILL_DIR}\u002Fscripts\u002Fbackup_script_generator.py \\\n  --db-type postgresql \\\n  --database mydb \\\n  --output \u002Fopt\u002Fbackup-scripts\u002Fmydb-backup.sh \\\n  --compression gzip \\\n  --encryption gpg\n```\n\n### Step 3: Schedule with Cron\nUse `scripts\u002Fbackup_scheduler.py` to create cron entries:\n```bash\npython3 ${CLAUDE_SKILL_DIR}\u002Fscripts\u002Fbackup_scheduler.py \\\n  --script \u002Fopt\u002Fbackup-scripts\u002Fmydb-backup.sh \\\n  --schedule \"0 2 * * *\" \\\n  --user postgres\n```\n\n### Step 4: Validate Backup\nAfter backup completes, validate integrity:\n```bash\npython3 ${CLAUDE_SKILL_DIR}\u002Fscripts\u002Fbackup_validator.py \\\n  --backup-file \u002Fvar\u002Fbackups\u002Fpostgresql\u002Fmydb_20250115.sql.gz \\\n  --db-type postgresql\n```\n\n### Step 5: Generate Restore Procedure\nCreate matching restore script:\n```bash\npython3 ${CLAUDE_SKILL_DIR}\u002Fscripts\u002Frestore_script_generator.py \\\n  --db-type postgresql \\\n  --database mydb \\\n  --output \u002Fopt\u002Fbackup-scripts\u002Fmydb-restore.sh\n```\n\n## Cron Schedule Reference\n\n| Schedule | Cron Expression | Description |\n|----------|-----------------|-------------|\n| Daily 2 AM | `0 2 * * *` | Low-traffic window |\n| Every 6 hours | `0 *\u002F6 * * *` | Frequent backups |\n| Weekly Sunday | `0 2 * * 0` | Weekly full backup |\n| Monthly 1st | `0 2 1 * *` | Monthly archive |\n\n## Retention Policy Example\n\n```bash\n# Keep daily backups for 7 days\n# Keep weekly backups for 4 weeks\n# Keep monthly backups for 12 months\n\nfind \u002Fvar\u002Fbackups -name \"*.gz\" -mtime +7 -delete  # Daily cleanup\nfind \u002Fvar\u002Fbackups\u002Fweekly -mtime +28 -delete       # Weekly cleanup\nfind \u002Fvar\u002Fbackups\u002Fmonthly -mtime +365 -delete     # 365: Monthly cleanup\n```\n\n## Output\n\n- **Backup Scripts**: Database-specific shell scripts with compression and encryption\n- **Cron Entries**: Ready-to-install crontab configurations\n- **Restore Scripts**: Matching restore procedures for each backup type\n- **Validation Reports**: Integrity check results for backup files\n\n## Error Handling\n\n| Error | Cause | Solution |\n|-------|-------|----------|\n| Connection refused | DB not running | Check service status: `systemctl status postgresql` |\n| Permission denied | Wrong credentials | Verify user has backup privileges |\n| Disk full | No space | Check space: `df -h`, clean old backups |\n| Lock timeout | Active transactions | Use `--single-transaction` for MySQL |\n\n## Resources\n\n- `${CLAUDE_SKILL_DIR}\u002Freferences\u002Fpostgresql_backup_restore.md` - PostgreSQL backup guide\n- `${CLAUDE_SKILL_DIR}\u002Freferences\u002Fmysql_backup_restore.md` - MySQL backup guide\n- `${CLAUDE_SKILL_DIR}\u002Freferences\u002Fmongodb_backup_restore.md` - MongoDB backup guide\n- `${CLAUDE_SKILL_DIR}\u002Freferences\u002Fsqlite_backup_restore.md` - SQLite backup guide\n- `${CLAUDE_SKILL_DIR}\u002Freferences\u002Fbackup_best_practices.md` - Security and storage best practices\n- `${CLAUDE_SKILL_DIR}\u002Freferences\u002Fcron_syntax.md` - Cron scheduling reference\n\n## Overview\n\nAutomate database backup processes with scheduling, compression, and encryption.\n\n## Prerequisites\n\n- Access to the PostgreSQL environment or API\n- Required CLI tools installed and authenticated\n- Familiarity with PostgreSQL concepts and terminology\n\n## Examples\n\n**Basic usage**: Apply automating database backups to a standard project setup with default configuration options.\n\n**Advanced scenario**: Customize automating database backups for production environments with multiple constraints and team-specific requirements.\n","# Database Backup Automation\n\nGenerate production-ready backup scripts for PostgreSQL, MySQL, MongoDB, and SQLite with compression, encryption, scheduling, and retention policies.\n\n## Quick Start\n\n### PostgreSQL Backup\n```bash\n#!\u002Fbin\u002Fbash\nset -euo pipefail\nBACKUP_DIR=\"\u002Fvar\u002Fbackups\u002Fpostgresql\"\nDB_NAME=\"mydb\"\nDATE=$(date +%Y%m%d_%H%M%S)\nBACKUP_FILE=\"${BACKUP_DIR}\u002F${DB_NAME}_${DATE}.sql.gz\"\n\npg_dump -h localhost -U postgres -d \"$DB_NAME\" \\\n  --format=custom \\\n  --compress=9 \\\n  --file=\"$BACKUP_FILE\"\n\n# Encrypt with GPG (optional)\ngpg --symmetric --cipher-algo AES256 --batch --passphrase-file \u002Fetc\u002Fbackup.key \"$BACKUP_FILE\"\nrm \"$BACKUP_FILE\"\n```\n\n### MySQL Backup\n```bash\n#!\u002Fbin\u002Fbash\nBACKUP_DIR=\"\u002Fvar\u002Fbackups\u002Fmysql\"\nDB_NAME=\"mydb\"\nDATE=$(date +%Y%m%d_%H%M%S)\n\nmysqldump -h localhost -u root -p\"${MYSQL_PASSWORD}\" \\\n  --single-transaction \\\n  --routines \\\n  --triggers \\\n  \"$DB_NAME\" | gzip > \"${BACKUP_DIR}\u002F${DB_NAME}_${DATE}.sql.gz\"\n```\n\n### MongoDB Backup\n```bash\n#!\u002Fbin\u002Fbash\nmongodump --uri=\"mongodb:\u002F\u002Flocalhost:27017\" \\  # 27017: MongoDB port\n  --db=mydb \\\n  --out=\u002Fvar\u002Fbackups\u002Fmongodb\u002F$(date +%Y%m%d_%H%M%S) \\\n  --gzip\n```\n\n## Instructions\n\n### Step 1: Gather Requirements\nAsk the user for:\n- Database type (PostgreSQL, MySQL, MongoDB, SQLite)\n- Database connection details (host, port, database name)\n- Backup schedule (cron expression or frequency)\n- Retention policy (days to keep)\n- Encryption requirement (yes\u002Fno)\n- Backup destination (local path, S3, GCS)\n\n### Step 2: Generate Backup Script\nUse `scripts\u002Fbackup_script_generator.py` to create a customized backup script:\n```bash\npython3 ${CLAUDE_SKILL_DIR}\u002Fscripts\u002Fbackup_script_generator.py \\\n  --db-type postgresql \\\n  --database mydb \\\n  --output \u002Fopt\u002Fbackup-scripts\u002Fmydb-backup.sh \\\n  --compression gzip \\\n  --encryption gpg\n```\n\n### Step 3: Schedule with Cron\nUse `scripts\u002Fbackup_scheduler.py` to create cron entries:\n```bash\npython3 ${CLAUDE_SKILL_DIR}\u002Fscripts\u002Fbackup_scheduler.py \\\n  --script \u002Fopt\u002Fbackup-scripts\u002Fmydb-backup.sh \\\n  --schedule \"0 2 * * *\" \\\n  --user postgres\n```\n\n### Step 4: Validate Backup\nAfter backup completes, validate integrity:\n```bash\npython3 ${CLAUDE_SKILL_DIR}\u002Fscripts\u002Fbackup_validator.py \\\n  --backup-file \u002Fvar\u002Fbackups\u002Fpostgresql\u002Fmydb_20250115.sql.gz \\\n  --db-type postgresql\n```\n\n### Step 5: Generate Restore Procedure\nCreate matching restore script:\n```bash\npython3 ${CLAUDE_SKILL_DIR}\u002Fscripts\u002Frestore_script_generator.py \\\n  --db-type postgresql \\\n  --database mydb \\\n  --output \u002Fopt\u002Fbackup-scripts\u002Fmydb-restore.sh\n```\n\n## Cron Schedule Reference\n\n| Schedule | Cron Expression | Description |\n|----------|-----------------|-------------|\n| Daily 2 AM | `0 2 * * *` | Low-traffic window |\n| Every 6 hours | `0 *\u002F6 * * *` | Frequent backups |\n| Weekly Sunday | `0 2 * * 0` | Weekly full backup |\n| Monthly 1st | `0 2 1 * *` | Monthly archive |\n\n## Retention Policy Example\n\n```bash\n# Keep daily backups for 7 days\n# Keep weekly backups for 4 weeks\n# Keep monthly backups for 12 months\n\nfind \u002Fvar\u002Fbackups -name \"*.gz\" -mtime +7 -delete  # Daily cleanup\nfind \u002Fvar\u002Fbackups\u002Fweekly -mtime +28 -delete       # Weekly cleanup\nfind \u002Fvar\u002Fbackups\u002Fmonthly -mtime +365 -delete     # 365: Monthly cleanup\n```\n\n## Output\n\n- **Backup Scripts**: Database-specific shell scripts with compression and encryption\n- **Cron Entries**: Ready-to-install crontab configurations\n- **Restore Scripts**: Matching restore procedures for each backup type\n- **Validation Reports**: Integrity check results for backup files\n\n## Error Handling\n\n| Error | Cause | Solution |\n|-------|-------|----------|\n| Connection refused | DB not running | Check service status: `systemctl status postgresql` |\n| Permission denied | Wrong credentials | Verify user has backup privileges |\n| Disk full | No space | Check space: `df -h`, clean old backups |\n| Lock timeout | Active transactions | Use `--single-transaction` for MySQL |\n\n## Resources\n\n- `${CLAUDE_SKILL_DIR}\u002Freferences\u002Fpostgresql_backup_restore.md` - PostgreSQL backup guide\n- `${CLAUDE_SKILL_DIR}\u002Freferences\u002Fmysql_backup_restore.md` - MySQL backup guide\n- `${CLAUDE_SKILL_DIR}\u002Freferences\u002Fmongodb_backup_restore.md` - MongoDB backup guide\n- `${CLAUDE_SKILL_DIR}\u002Freferences\u002Fsqlite_backup_restore.md` - SQLite backup guide\n- `${CLAUDE_SKILL_DIR}\u002Freferences\u002Fbackup_best_practices.md` - Security and storage best practices\n- `${CLAUDE_SKILL_DIR}\u002Freferences\u002Fcron_syntax.md` - Cron scheduling reference\n\n## Overview\n\nAutomate database backup processes with scheduling, compression, and encryption.\n\n## Prerequisites\n\n- Access to the PostgreSQL environment or API\n- Required CLI tools installed and authenticated\n- Familiarity with PostgreSQL concepts and terminology\n\n## Examples\n\n**Basic usage**: Apply automating database backups to a standard project setup with default configuration options.\n\n**Advanced scenario**: Customize automating database backups for production environments with multiple constraints and team-specific requirements.\n",{"name":5,"tags":44,"author":45,"license":15,"version":46,"description":47,"allowed-tools":48,"compatible-with":49},[20,36,37,34],"Jeremy Longshore \u003Cjeremy@intentsolutions.io>","2.0.0","Automate database backup processes with scheduling, compression, and encryption.\nSupports PostgreSQL (pg_dump), MySQL (mysqldump), MongoDB (mongodump), and SQLite.\nGenerates production-ready backup scripts with retention policies and restore procedures.\nTrigger: \"automate database backups\", \"schedule backups\", \"create backup script\", \"disaster recovery\". Use when working with automating database backups. Trigger with 'automating', 'database', 'backups'.\n","Read, Write, Edit, Grep, Glob, Bash(pg_dump:*), Bash(mysqldump:*), Bash(mongodump:*), Bash(cron:*), Bash(gpg:*)","claude-code, codex, openclaw","main","def8531e65114c0fca8fb8551c1871ee0eed705c","skills\u002Fjeremylongshore\u002Fclaude-code-plugins-plus-skills\u002Fautomating-database-backups",24,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub","https:\u002F\u002Fskillshub.wtf","https:\u002F\u002Fgithub.com\u002FComeOnOliver","AI & Blockchain Engineer\r\n","2026-06-24 22:07:19",{"source":8,"skillName":5,"commands":60,"prompt":70,"zipAvailable":71},[61,64,67],{"tool":62,"command":63},"npx","npx skills add ComeOnOliver\u002Fskillshub --skill automating-database-backups",{"tool":65,"command":66},"bunx","bunx skills add ComeOnOliver\u002Fskillshub --skill automating-database-backups",{"tool":68,"command":69},"pnpm","pnpm dlx skills add ComeOnOliver\u002Fskillshub --skill automating-database-backups","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fjeremylongshore\u002Fclaude-code-plugins-plus-skills\u002Fautomating-database-backups\u002FSKILL.md",true,[],[74,83,92,101,107,113],{"skillNo":75,"name":76,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":77,"categories":78,"keywords":79,"publishedAt":39},"01M6FKJN13GMG4KY57J3QD8GY5","model-hierarchy-skill","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzscole\u002Fmodel-hierarchy-skill\u002Fmodel-hierarchy-skill\u002FSKILL.md",[],[80,81,82],"model","model hierarchy","model hierarchy skill",{"skillNo":84,"name":85,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":86,"categories":87,"keywords":88,"publishedAt":39},"01M6FKJJJ6GCAMR4PPPRD12M5X","zoom-mcp","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-mcp\u002FSKILL.md",[],[89,90,91],"MCP","zoom","zoom mcp",{"skillNo":93,"name":94,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":95,"categories":96,"keywords":97,"publishedAt":39},"01M6FKJE3KYT3KPEZMEEHYKA6K","zoom-apps-sdk","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-apps-sdk\u002FSKILL.md",[],[98,99,100,90],"sdk","zoom apps sdk","apps",{"skillNo":102,"name":103,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":104,"categories":105,"keywords":106,"publishedAt":39},"01M6FKJ9EDH9Q5VWDF8HAJRSP0","windows","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwindows\u002FSKILL.md",[],[103],{"skillNo":108,"name":109,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":110,"categories":111,"keywords":112,"publishedAt":39},"01M6FKJ666BEEFC3AE9GJ72Q93","whiteboard","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwhiteboard\u002FSKILL.md",[],[109],{"skillNo":114,"name":115,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":116,"categories":117,"keywords":118,"publishedAt":39},"01M6FKJ21WFCDGTJQ2Q91T9DVW","websockets","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwebsockets\u002FSKILL.md",[],[115]]