sickn33/agentic-awesome-skills/database-backups
Claude Code and agent skill by sickn33/agentic-awesome-skills
- community
- ext:[{"type":"config","description":"Configuration overrides"}]
Checking that the SKILL.md file is still in the repository.
Implement database backup strategies. Configure automated backups, retention,
Install
npx vskill@latest install sickn33/agentic-awesome-skills/database-backupsSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
Database Backups
Implement comprehensive, automated database backup strategies with tested recovery procedures.
When to Use
- You are deploying a new database and need a backup plan from day one.
- You need to automate nightly or hourly backups for PostgreSQL, MySQL, or MongoDB.
- You want to ship backups to S3-compatible object storage with retention policies.
- You are building or verifying disaster recovery runbooks.
Confirm source/restore targets, RPO/RTO, retention and rollback. These scripts are partial: write dumps to private temporary files and promote only after successful exit and integrity checks; upload only completed manifests, not every old/partial file recursively. Verify remote checksums and a restore before deleting local copies. Lifecycle replacement affects the whole configured bucket and must preserve other policies/noncurrent versions. Restore-test row counts are application-specific smoke checks, not full recovery proof. Use protected client configuration/secret mechanisms rather than passwords in process arguments; Mongo URI credentials need proper encoding.
Prerequisites
- Database client tools installed (
pg_dump,mysqldump,mongodump). - AWS CLI or
resticfor remote storage. cronor systemd timers for scheduling.- An S3 bucket (or S3-compatible endpoint) for offsite backups.
Backup Types
| Type | Description | Frequency | Use Case | |
|---|---|---|---|---|
| Full | Complete database copy | Weekly | Baseline for restores | |
| Incremental | Changes since last backup | Daily | Reduce storage and time | |
| Transaction log / WAL | Continuous log shipping | Continuous | Point-in-time recovery (PITR) | |
| Snapshot | Storage-level snapshot (EBS, ZFS) | Daily | Fast full restores |
PostgreSQL Backups
Logical Backup with pg_dump
Physical Backup with pg_basebackup
PostgreSQL Restore
MySQL Backups
Logical Backup with mysqldump
Physical Backup with Percona XtraBackup
MySQL Restore
MongoDB Backups
Logical Backup with mongodump
MongoDB Restore
Upload to S3
S3 Lifecycle Policy for Retention
Restic Backup (Encrypted, Deduplicated)
Cron Schedules
Automated Recovery Testing
Unified Backup Script
Best Practices
- 3-2-1 Rule: Keep 3 copies of data, on 2 different media types, with 1 offsite.
- Encrypt backups at rest: Use
restic(built-in encryption), AWS SSE, orgpg. - Test restores regularly: A backup that has never been restored is not a backup.
- Monitor backup jobs: Alert immediately on any failure; do not rely on silent cron jobs.
- Document RTOs and RPOs: Define Recovery Time Objective and Recovery Point Objective for each database.
- Version your backup scripts: Store them in Git alongside your infrastructure code.
- Consistency: mysqldump --single-transaction covers transactional tables and requires no conflicting DDL; pg_dump already takes a consistent snapshot without that MySQL flag. Physical PITR also requires a continuous retained WAL chain, not merely a base backup.
- Separate backup credentials: Use a dedicated read-only database user for backups.
Troubleshooting
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/database-backups/SKILL.md
Popularity
- Repository stars
- 47,054
- Repository forks
- 6,853
- 7-day trend score
- 54
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Extension points
configConfiguration overrides
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/sickn33/agentic-awesome-skills/database-backups)