implementing-backup-strategies
Execute use when you need to work with backup and recovery. This skill provides backup automation and disaster recovery with comprehensive guidance and automation. Trigger with phrases like "create backups", "automate backups", or "implement disaster recovery".
Best use case
implementing-backup-strategies is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
Execute use when you need to work with backup and recovery. This skill provides backup automation and disaster recovery with comprehensive guidance and automation. Trigger with phrases like "create backups", "automate backups", or "implement disaster recovery".
Teams using implementing-backup-strategies should expect a more consistent output, faster repeated execution, less prompt rewriting.
When to use this skill
- You want a reusable workflow that can be run more than once with consistent structure.
When not to use this skill
- You only need a quick one-off answer and do not need a reusable workflow.
- You cannot install or maintain the underlying files, dependencies, or repository context.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/implementing-backup-strategies/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How implementing-backup-strategies Compares
| Feature / Agent | implementing-backup-strategies | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
Execute use when you need to work with backup and recovery. This skill provides backup automation and disaster recovery with comprehensive guidance and automation. Trigger with phrases like "create backups", "automate backups", or "implement disaster recovery".
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
SKILL.md Source
# Implementing Backup Strategies ## Overview Design and implement backup strategies for databases, file systems, and cloud resources using tools like `tar`, `rsync`, `pg_dump`, `mysqldump`, AWS S3, and cloud-native snapshot APIs. Covers full, incremental, and differential backup schemes with retention policies, encryption, and automated verification. ## Prerequisites - `tar`, `rsync`, or `restic` installed for file-level backups - Database client tools (`pg_dump`, `mysqldump`, `mongodump`) for database backups - AWS CLI configured with S3 write permissions (or equivalent GCP/Azure storage access) - Sufficient storage capacity at backup destination (local, NFS, or object storage) - Cron or systemd timer access for scheduling automated backups - GPG or OpenSSL for backup encryption at rest ## Instructions 1. Inventory all data sources requiring backup: databases, application data directories, configuration files, secrets/certificates 2. Classify data by RPO (Recovery Point Objective) and RTO (Recovery Time Objective) requirements 3. Select backup strategy per data class: full daily + incremental hourly for databases, snapshot-based for block storage, rsync for file systems 4. Generate backup scripts using appropriate tools (`pg_dump --format=custom`, `tar czf`, `rsync -avz --delete`) 5. Configure retention policy: daily backups kept 7 days, weekly kept 4 weeks, monthly kept 12 months 6. Add encryption for backups containing sensitive data (`gpg --encrypt` or S3 server-side encryption with KMS) 7. Set up automated scheduling via cron jobs or systemd timers with proper logging 8. Implement backup verification: restore to a test environment on a weekly schedule and validate data integrity 9. Configure alerting for backup failures via email, Slack, or PagerDuty ## Output - Backup shell scripts with logging, error handling, and lock files to prevent concurrent runs - Cron entries or systemd timer/service unit files - Retention policy configuration (lifecycle rules for S3, cleanup scripts for local) - Restore runbook with step-by-step recovery procedures - Monitoring configuration for backup success/failure alerts ## Error Handling | Error | Cause | Solution | |-------|-------|---------| | `No space left on device` | Backup destination full | Verify retention cleanup is running; increase storage or reduce retention window | | `pg_dump: connection refused` | Database not accepting connections or wrong credentials | Check `pg_hba.conf`, verify connection string, and test with `psql` first | | `rsync: connection unexpectedly closed` | Network interruption or SSH timeout | Add `--timeout=300` and `--partial` flags; use persistent SSH tunnel | | `S3 upload failed: Access Denied` | IAM policy missing `s3:PutObject` permission | Attach proper IAM policy; verify bucket policy allows writes from the backup source | | `Backup file corrupted on restore` | Incomplete write or disk error during backup | Add checksum verification (`sha256sum`) after backup; test restores regularly | ## Examples - "Create a backup strategy for a PostgreSQL database: full dump nightly to S3, WAL archiving for point-in-time recovery, 30-day retention." - "Generate rsync scripts to mirror `/var/www` to a remote NAS with incremental daily backups and weekly full backups." - "Implement encrypted backups for a MongoDB replica set with automated restore testing every Sunday." ## Resources - PostgreSQL backup guide: https://www.postgresql.org/docs/current/backup.html - AWS S3 lifecycle policies: https://docs.aws.amazon.com/AmazonS3/latest/userguide/object-lifecycle-mgmt.html - Restic backup tool: https://restic.readthedocs.io/ - Backup best practices (3-2-1 rule): https://www.veeam.com/blog/321-backup-rule.html
Related Skills
implementing-real-user-monitoring
This skill assists in implementing Real User Monitoring (RUM) to capture and analyze actual user performance data. It helps set up tracking for key metrics like Core Web Vitals, page load times, and custom performance events. Use this skill when the user asks to "setup RUM", "implement real user monitoring", "track user experience", or needs assistance with "performance monitoring". It guides the user through choosing a RUM platform, designing an instrumentation strategy, and implementing the necessary tracking code.
implementing-database-caching
Process use when you need to implement multi-tier caching to improve database performance. This skill sets up Redis, in-memory caching, and CDN layers to reduce database load. Trigger with phrases like "implement database caching", "add Redis cache layer", "improve query performance with caching", or "reduce database load".
implementing-database-audit-logging
Process use when you need to track database changes for compliance and security monitoring. This skill implements audit logging using triggers, application-level logging, CDC, or native logs. Trigger with phrases like "implement database audit logging", "add audit trails", "track database changes", or "monitor database activity for compliance".
fairdb-backup-manager
Manage use when you need to work with backup and recovery. This skill provides backup automation and disaster recovery with comprehensive guidance and automation. Trigger with phrases like "create backups", "automate backups", or "implement disaster recovery".
automating-database-backups
This skill automates database backups using the database-backup-automator plugin. It creates scripts for scheduled backups, compression, encryption, and restore procedures across PostgreSQL, MySQL, MongoDB, and SQLite. Use this when the user requests database backup automation, disaster recovery planning, setting up backup schedules, or creating restore procedures. The skill is triggered by phrases like "create database backup", "automate database backups", "setup backup schedule", or "generate restore procedure".
backtesting-trading-strategies
Backtest crypto and traditional trading strategies against historical data. Calculates performance metrics (Sharpe, Sortino, max drawdown), generates equity curves, and optimizes strategy parameters. Use when user wants to test a trading strategy, validate signals, or compare approaches. Trigger with phrases like "backtest strategy", "test trading strategy", "historical performance", "simulate trades", "optimize parameters", or "validate signals".
recipe-backup-sheet-as-csv
Export a Google Sheets spreadsheet as a CSV file for local backup or processing.
testing-strategies
Design comprehensive testing strategies for software quality assurance. Use when planning test coverage, implementing test pyramids, or setting up testing infrastructure. Handles unit testing, integration testing, E2E testing, TDD, and testing best practices.
embedding-strategies
Select and optimize embedding models for semantic search and RAG applications. Use when choosing embedding models, implementing chunking strategies, or optimizing embedding quality for specific domains.
debugging-strategies
Master systematic debugging techniques, profiling tools, and root cause analysis to efficiently track down bugs across any codebase or technology stack. Use when investigating bugs, performance issues, or unexpected behavior.
implementing-with-tdd
Use when implementing bug fixes, features, or any code changes where test-first development is appropriate.
designing-and-implementing
Use when receiving feature requests, architectural discussions, or multi-step implementation needs that require design before coding.