[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M74YV9R4E2YKCNTWBW2CDYYB":3,"skill-same:01M74YV9R4E2YKCNTWBW2CDYYB":67},{"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":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":29,"commitSha":30,"skillDirectory":5,"forksCount":14,"repositoryHtmlUrl":31,"repositoryHomepageUrl":6,"ownerHtmlUrl":32,"ownerBlogUrl":33,"ownerDescription":6,"updatedAt":34,"install":35,"resources":48},"01M74YV9R4E2YKCNTWBW2CDYYB","fairdb-backup-manager",null,"Manage use when you need to work with backup and recovery.\nThis skill provides backup automation and disaster recovery with comprehensive guidance and automation.\nTrigger with phrases like \"create backups\", \"automate backups\",\nor \"implement disaster recovery\".","SamuelChien\u002Fmega-skills-collection","SamuelChien","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F4652114?v=4","01M74KK34WVHA0P5ZYSJRDDFMG","Samuel Chien","01M74KK35FQN1N9VZ9EPTH3P2S",0,"MIT","https:\u002F\u002Fgithub.com\u002FSamuelChien\u002Fmega-skills-collection\u002Fblob\u002Fmain\u002Ffairdb-backup-manager\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nname: fairdb-backup-manager\ndescription: |\n  Manage use when you need to work with backup and recovery.\n  This skill provides backup automation and disaster recovery with comprehensive guidance and automation.\n  Trigger with phrases like \"create backups\", \"automate backups\",\n  or \"implement disaster recovery\".\n\nallowed-tools: Read, Write, Edit, Grep, Glob, Bash(tar:*), Bash(rsync:*), Bash(aws:s3:*)\nversion: 1.0.0\nauthor: Jeremy Longshore \u003Cjeremy@intentsolutions.io>\nlicense: MIT\ncompatible-with: claude-code, codex, openclaw\n---\n# FairDB Backup Manager\n\n## Overview\n\nAutomate backup and recovery operations for FairDB database instances. Generate backup scripts, configure retention policies, schedule automated backups to local storage or S3, and produce tested restore procedures with integrity verification.\n\n## Prerequisites\n\n- FairDB instance running and accessible with admin credentials\n- `tar` and `rsync` installed for file-level backups\n- AWS CLI configured with `s3:PutObject` and `s3:GetObject` permissions (if using S3 as backup target)\n- Sufficient storage at backup destination (2-3x database size for rotation)\n- Cron or systemd timer access for scheduling\n- Test environment available for restore verification\n\n## Instructions\n\n1. Assess the FairDB instance: identify data directory location, database size, and write throughput\n2. Select backup method: logical dump for portability, filesystem snapshot for speed, or continuous archiving for minimal RPO\n3. Generate backup script with lock acquisition, data export, compression (`tar czf`), and checksum generation\n4. Configure S3 upload with server-side encryption (`aws s3 cp --sse aws:kms`) for off-site copies\n5. Set up retention policy: keep hourly backups for 24 hours, daily for 7 days, weekly for 4 weeks, monthly for 12 months\n6. Create cleanup script to purge expired backups according to retention schedule\n7. Schedule backups via cron with proper logging to `\u002Fvar\u002Flog\u002Ffairdb-backup.log`\n8. Generate restore procedure: download from S3, verify checksum, decompress, and import with validation query\n9. Test restore procedure in a staging environment and document the time-to-recovery\n\n## Output\n\n- Backup shell script with logging, locking, compression, and S3 upload\n- Restore shell script with checksum verification and data validation\n- Cron schedule entries or systemd timer units\n- Retention cleanup script\n- S3 lifecycle policy configuration for long-term archive tiering\n\n## Error Handling\n\n| Error | Cause | Solution |\n|-------|-------|---------|\n| `Backup lock acquisition failed` | Another backup or maintenance process is running | Check for stale lock files; implement timeout-based lock with `flock` |\n| `tar: Cannot open: No space left on device` | Local backup destination full | Run retention cleanup; check disk usage with `df -h`; increase volume size |\n| `aws s3 cp: upload failed` | Network issue or expired AWS credentials | Retry with `--retry 3`; refresh credentials; check S3 bucket permissions |\n| `Restore failed: checksum mismatch` | Backup file corrupted during transfer or storage | Re-download from S3; verify S3 object integrity; use a different backup copy |\n| `Database inconsistent after restore` | Backup taken during active write without lock | Ensure backup script acquires a consistent snapshot lock before export |\n\n## Examples\n\n- \"Create an automated nightly backup for the FairDB production instance, compressed and uploaded to S3 with KMS encryption and 30-day retention.\"\n- \"Generate a restore runbook that pulls the latest backup from S3, verifies integrity, and restores to a staging instance for validation.\"\n- \"Set up backup monitoring that alerts via Slack if a backup job fails or if no successful backup exists within the last 25 hours.\"\n\n## Resources\n\n- AWS S3 CLI: https:\u002F\u002Fdocs.aws.amazon.com\u002Fcli\u002Flatest\u002Freference\u002Fs3\u002F\n- rsync documentation: https:\u002F\u002Frsync.samba.org\u002Fdocumentation.html\n- Backup automation patterns: https:\u002F\u002Fwww.veeam.com\u002Fblog\u002F321-backup-rule.html\n- Linux cron scheduling: https:\u002F\u002Fcrontab.guru\u002F","# FairDB Backup Manager\n\n## Overview\n\nAutomate backup and recovery operations for FairDB database instances. Generate backup scripts, configure retention policies, schedule automated backups to local storage or S3, and produce tested restore procedures with integrity verification.\n\n## Prerequisites\n\n- FairDB instance running and accessible with admin credentials\n- `tar` and `rsync` installed for file-level backups\n- AWS CLI configured with `s3:PutObject` and `s3:GetObject` permissions (if using S3 as backup target)\n- Sufficient storage at backup destination (2-3x database size for rotation)\n- Cron or systemd timer access for scheduling\n- Test environment available for restore verification\n\n## Instructions\n\n1. Assess the FairDB instance: identify data directory location, database size, and write throughput\n2. Select backup method: logical dump for portability, filesystem snapshot for speed, or continuous archiving for minimal RPO\n3. Generate backup script with lock acquisition, data export, compression (`tar czf`), and checksum generation\n4. Configure S3 upload with server-side encryption (`aws s3 cp --sse aws:kms`) for off-site copies\n5. Set up retention policy: keep hourly backups for 24 hours, daily for 7 days, weekly for 4 weeks, monthly for 12 months\n6. Create cleanup script to purge expired backups according to retention schedule\n7. Schedule backups via cron with proper logging to `\u002Fvar\u002Flog\u002Ffairdb-backup.log`\n8. Generate restore procedure: download from S3, verify checksum, decompress, and import with validation query\n9. Test restore procedure in a staging environment and document the time-to-recovery\n\n## Output\n\n- Backup shell script with logging, locking, compression, and S3 upload\n- Restore shell script with checksum verification and data validation\n- Cron schedule entries or systemd timer units\n- Retention cleanup script\n- S3 lifecycle policy configuration for long-term archive tiering\n\n## Error Handling\n\n| Error | Cause | Solution |\n|-------|-------|---------|\n| `Backup lock acquisition failed` | Another backup or maintenance process is running | Check for stale lock files; implement timeout-based lock with `flock` |\n| `tar: Cannot open: No space left on device` | Local backup destination full | Run retention cleanup; check disk usage with `df -h`; increase volume size |\n| `aws s3 cp: upload failed` | Network issue or expired AWS credentials | Retry with `--retry 3`; refresh credentials; check S3 bucket permissions |\n| `Restore failed: checksum mismatch` | Backup file corrupted during transfer or storage | Re-download from S3; verify S3 object integrity; use a different backup copy |\n| `Database inconsistent after restore` | Backup taken during active write without lock | Ensure backup script acquires a consistent snapshot lock before export |\n\n## Examples\n\n- \"Create an automated nightly backup for the FairDB production instance, compressed and uploaded to S3 with KMS encryption and 30-day retention.\"\n- \"Generate a restore runbook that pulls the latest backup from S3, verifies integrity, and restores to a staging instance for validation.\"\n- \"Set up backup monitoring that alerts via Slack if a backup job fails or if no successful backup exists within the last 25 hours.\"\n\n## Resources\n\n- AWS S3 CLI: https:\u002F\u002Fdocs.aws.amazon.com\u002Fcli\u002Flatest\u002Freference\u002Fs3\u002F\n- rsync documentation: https:\u002F\u002Frsync.samba.org\u002Fdocumentation.html\n- Backup automation patterns: https:\u002F\u002Fwww.veeam.com\u002Fblog\u002F321-backup-rule.html\n- Linux cron scheduling: https:\u002F\u002Fcrontab.guru\u002F",{"name":5,"author":24,"license":15,"version":25,"description":26,"allowed-tools":27,"compatible-with":28},"Jeremy Longshore \u003Cjeremy@intentsolutions.io>","1.0.0","Manage use when you need to work with backup and recovery.\nThis skill provides backup automation and disaster recovery with comprehensive guidance and automation.\nTrigger with phrases like \"create backups\", \"automate backups\",\nor \"implement disaster recovery\".\n","Read, Write, Edit, Grep, Glob, Bash(tar:*), Bash(rsync:*), Bash(aws:s3:*)","claude-code, codex, openclaw","main","c2b1fdccc779e99ac814e55fb69ca8d71215dd0f","https:\u002F\u002Fgithub.com\u002FSamuelChien\u002Fmega-skills-collection","https:\u002F\u002Fgithub.com\u002FSamuelChien","http:\u002F\u002Fsamuelchien.com\u002F","2026-05-26 08:27:14",{"source":8,"skillName":5,"commands":36,"prompt":46,"zipAvailable":47},[37,40,43],{"tool":38,"command":39},"npx","npx skills add SamuelChien\u002Fmega-skills-collection --skill fairdb-backup-manager",{"tool":41,"command":42},"bunx","bunx skills add SamuelChien\u002Fmega-skills-collection --skill fairdb-backup-manager",{"tool":44,"command":45},"pnpm","pnpm dlx skills add SamuelChien\u002Fmega-skills-collection --skill fairdb-backup-manager","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FSamuelChien\u002Fmega-skills-collection\u002Fblob\u002Fmain\u002Ffairdb-backup-manager\u002FSKILL.md",true,[49,55,61],{"path":50,"resourceType":51,"resourceTypeDesc":52,"sizeBytes":53,"sourceHtmlUrl":54},"assets\u002FREADME.md","ASSET","资产文件",525,"https:\u002F\u002Fgithub.com\u002FSamuelChien\u002Fmega-skills-collection\u002Fblob\u002Fmain\u002Ffairdb-backup-manager\u002Fassets\u002FREADME.md",{"path":56,"resourceType":57,"resourceTypeDesc":58,"sizeBytes":59,"sourceHtmlUrl":60},"references\u002FREADME.md","REFERENCE","参考文档",580,"https:\u002F\u002Fgithub.com\u002FSamuelChien\u002Fmega-skills-collection\u002Fblob\u002Fmain\u002Ffairdb-backup-manager\u002Freferences\u002FREADME.md",{"path":62,"resourceType":63,"resourceTypeDesc":64,"sizeBytes":65,"sourceHtmlUrl":66},"scripts\u002FREADME.md","SCRIPT","脚本",622,"https:\u002F\u002Fgithub.com\u002FSamuelChien\u002Fmega-skills-collection\u002Fblob\u002Fmain\u002Ffairdb-backup-manager\u002Fscripts\u002FREADME.md",[68,75,82,89,96,104],{"skillNo":69,"name":70,"nameZh":6,"description":71,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":72,"categories":73,"keywords":74,"publishedAt":19},"01M76R4WZQZAXGGXMQCA0FZ716","zustand-store-ts","Create Zustand stores with TypeScript, subscribeWithSelector middleware, and proper state\u002Faction separation. Use when building React state management, creating global stores, or implementing reactive state patterns with Zustand.","https:\u002F\u002Fgithub.com\u002FSamuelChien\u002Fmega-skills-collection\u002Fblob\u002Fmain\u002Fzustand-store-ts\u002FSKILL.md",[],[],{"skillNo":76,"name":77,"nameZh":6,"description":78,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":19},"01M76R4T9KENDH7FENGZQHBW4G","zustand-store-creator","Zustand Store Creator - Auto-activating skill for Frontend Development.\nTriggers on: zustand store creator, zustand store creator\nPart of the Frontend Development skill category.","https:\u002F\u002Fgithub.com\u002FSamuelChien\u002Fmega-skills-collection\u002Fblob\u002Fmain\u002Fzustand-store-creator\u002FSKILL.md",[],[],{"skillNo":83,"name":84,"nameZh":6,"description":85,"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":19},"01M76R3YWN84B7SANJ52X799ZE","zero-trust-config-helper","Zero Trust Config Helper - Auto-activating skill for Security Advanced.\nTriggers on: zero trust config helper, zero trust config helper\nPart of the Security Advanced skill category.","https:\u002F\u002Fgithub.com\u002FSamuelChien\u002Fmega-skills-collection\u002Fblob\u002Fmain\u002Fzero-trust-config-helper\u002FSKILL.md",[],[],{"skillNo":90,"name":91,"nameZh":6,"description":92,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":93,"categories":94,"keywords":95,"publishedAt":19},"01M76R3HNSV2AEYSKHM915GJ58","zapier-integration-helper","Zapier Integration Helper - Auto-activating skill for Business Automation.\nTriggers on: zapier integration helper, zapier integration helper\nPart of the Business Automation skill category.","https:\u002F\u002Fgithub.com\u002FSamuelChien\u002Fmega-skills-collection\u002Fblob\u002Fmain\u002Fzapier-integration-helper\u002FSKILL.md",[],[],{"skillNo":97,"name":98,"nameZh":6,"description":99,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":100,"licenseFileUrl":6,"sourceHtmlUrl":101,"categories":102,"keywords":103,"publishedAt":19},"01M76R3DJSKAT4FA7DV4BF3GCE","zai-cli","Execute z.AI CLI providing vision, search, reader, and GitHub exploration via CLI and MCP.\nUse when user needs image\u002Fvideo analysis, OCR, UI-to-code conversion, error diagnosis,\nreal-time web search, web page to markdown extraction, or GitHub code exploration.\nTrigger with phrases like \"analyze this image\", \"search the web for\", \"read this page\",\n\"explore this repo\", or \"use zai\". Requires Z_AI_API_KEY.","Apache-2.0","https:\u002F\u002Fgithub.com\u002FSamuelChien\u002Fmega-skills-collection\u002Fblob\u002Fmain\u002Fzai-cli\u002FSKILL.md",[],[],{"skillNo":105,"name":106,"nameZh":6,"description":107,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":108,"categories":109,"keywords":110,"publishedAt":19},"01M76R2KAM699XE9AJVAWE4H2E","yt-research","Research competitor YouTube channels, niches, and trending topics for your content strategy.\nUse this skill whenever the user says \"research channels\", \"analyze competitors\", \"find trending topics\",\n\"niche analysis\", \"competitive research\", \"what are other creators doing\", \"scrape YouTube channels\",\nor wants to understand the competitive landscape for a specific tool or topic area. Use when working with yt research. Trigger with 'yt', 'research'.","https:\u002F\u002Fgithub.com\u002FSamuelChien\u002Fmega-skills-collection\u002Fblob\u002Fmain\u002Fyt-research\u002FSKILL.md",[],[]]