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.
Related Guides
Best AI Skills for Claude
Explore the best AI skills for Claude and Claude Code across coding, research, workflow automation, documentation, and agent operations.
ChatGPT vs Claude for Agent Skills
Compare ChatGPT and Claude for AI agent skills across coding, writing, research, and reusable workflow execution.
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
Implement Real User Monitoring (RUM) to capture actual user performance data including Core Web Vitals and page load times. Use when setting up user experience monitoring or tracking custom performance events. Trigger with phrases like "setup RUM", "track Core Web Vitals", or "monitor real user performance".
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".
automating-database-backups
Automate database backup processes with scheduling, compression, and encryption. Supports PostgreSQL (pg_dump), MySQL (mysqldump), MongoDB (mongodump), and SQLite. Generates production-ready backup scripts with retention policies and restore procedures. Trigger: "automate database backups", "schedule backups", "create backup script", "disaster recovery". Use when working with automating database backups. Trigger with 'automating', 'database', 'backups'.
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".
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".
FairDB Backup Manager
Automatically manages PostgreSQL backups with pgBackRest and Wasabi S3 storage when working with FairDB databases
schema-optimization-orchestrator
Multi-phase schema optimization workflow orchestrator. Creates session directories, spawns phase agents sequentially, validates outputs, aggregates results. Trigger: "run schema optimization", "optimize schema workflow", "execute schema phases"
test-skill
Test skill for E2E validation. Trigger with "run test skill" or "execute test". Use this skill when testing skill activation and tool permissions.
example-skill
Brief description of what this skill does and when the model should activate it. Use when [describe the user's intent or situation]. Trigger with "example phrase", "another trigger", "/example-skill".
testing-visual-regression
Detect visual changes in UI components using screenshot comparison. Use when detecting unintended UI changes or pixel differences. Trigger with phrases like "test visual changes", "compare screenshots", or "detect UI regressions".
generating-unit-tests
Test automatically generate comprehensive unit tests from source code covering happy paths, edge cases, and error conditions. Use when creating test coverage for functions, classes, or modules. Trigger with phrases like "generate unit tests", "create tests for", or "add test coverage".
generating-test-reports
Generate comprehensive test reports with metrics, coverage, and visualizations. Use when performing specialized testing. Trigger with phrases like "generate test report", "create test documentation", or "show test metrics".