Agent skill
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".
Install this agent skill to your Project
npx add-skill https://github.com/jeremylongshore/claude-code-plugins-plus-skills/tree/main/backups/skills-migration-20251108-070147/plugins/database/database-backup-automator/skills/database-backup-automator
SKILL.md
Overview
This skill streamlines the creation of database backup solutions. It generates scripts, configures schedules, and provides comprehensive restore procedures, ensuring data safety and efficient recovery.
How It Works
- Analyze Requirements: Determines the database type (PostgreSQL, MySQL, MongoDB, or SQLite) and backup requirements (frequency, retention).
- Generate Scripts: Creates backup scripts with compression and encryption.
- Schedule Backups: Sets up cron jobs for automated, scheduled backups.
- Document Restore: Generates clear, concise restore procedures.
When to Use This Skill
This skill activates when you need to:
- Create a backup schedule for a database.
- Automate the database backup process.
- Generate scripts for database restoration.
- Implement a disaster recovery plan for a database.
Examples
Example 1: Setting up Daily Backups for PostgreSQL
User request: "Create daily backups for my PostgreSQL database."
The skill will:
- Generate a
pg_dumpscript with compression and encryption. - Create a cron job to run the backup script daily.
Example 2: Automating Weekly Backups for MongoDB
User request: "Automate weekly backups for my MongoDB database."
The skill will:
- Generate a
mongodumpscript with compression and encryption. - Create a cron job to run the backup script weekly and implement a retention policy.
Best Practices
- Retention Policies: Implement clear retention policies to manage storage space.
- Testing Restores: Regularly test restore procedures to ensure data integrity.
- Secure Storage: Store backups in secure, encrypted locations, preferably offsite.
Integration
This skill can integrate with cloud storage plugins (S3, GCS, Azure) for offsite backup storage and monitoring plugins for backup success/failure alerts.
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
dockerfile-generator
Dockerfile Generator - Auto-activating skill for DevOps Basics. Triggers on: dockerfile generator, dockerfile generator Part of the DevOps Basics skill category.
branch-naming-helper
Branch Naming Helper - Auto-activating skill for DevOps Basics. Triggers on: branch naming helper, branch naming helper Part of the DevOps Basics skill category.
readme-generator
Readme Generator - Auto-activating skill for DevOps Basics. Triggers on: readme generator, readme generator Part of the DevOps Basics skill category.
makefile-generator
Makefile Generator - Auto-activating skill for DevOps Basics. Triggers on: makefile generator, makefile generator Part of the DevOps Basics skill category.
gitignore-generator
Gitignore Generator - Auto-activating skill for DevOps Basics. Triggers on: gitignore generator, gitignore generator Part of the DevOps Basics skill category.
pre-commit-hook-setup
Pre Commit Hook Setup - Auto-activating skill for DevOps Basics. Triggers on: pre commit hook setup, pre commit hook setup Part of the DevOps Basics skill category.
Didn't find tool you were looking for?