Back to Skills

automating-database-backups

jeremylongshore
Updated Today
14 views
712
74
712
View on GitHub
Metaapiautomationdata

About

This skill automates database backup creation for PostgreSQL, MySQL, MongoDB, and SQLite by generating scripts for scheduled backups, compression, and encryption. Use it when you need to implement backup automation, disaster recovery plans, or restore procedures. It is triggered by requests like "automate database backups" or "setup backup schedule."

Quick Install

Claude Code

Recommended
Plugin CommandRecommended
/plugin add https://github.com/jeremylongshore/claude-code-plugins-plus
Git CloneAlternative
git clone https://github.com/jeremylongshore/claude-code-plugins-plus.git ~/.claude/skills/automating-database-backups

Copy and paste this command in Claude Code to install this skill

Documentation

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

  1. Analyze Requirements: Determines the database type (PostgreSQL, MySQL, MongoDB, or SQLite) and backup requirements (frequency, retention).
  2. Generate Scripts: Creates backup scripts with compression and encryption.
  3. Schedule Backups: Sets up cron jobs for automated, scheduled backups.
  4. 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:

  1. Generate a pg_dump script with compression and encryption.
  2. 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:

  1. Generate a mongodump script with compression and encryption.
  2. 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.

GitHub Repository

jeremylongshore/claude-code-plugins-plus
Path: backups/skills-migration-20251108-070147/plugins/database/database-backup-automator/skills/database-backup-automator
aiautomationclaude-codedevopsmarketplacemcp

Related Skills

sglang

Meta

SGLang is a high-performance LLM serving framework that specializes in fast, structured generation for JSON, regex, and agentic workflows using its RadixAttention prefix caching. It delivers significantly faster inference, especially for tasks with repeated prefixes, making it ideal for complex, structured outputs and multi-turn conversations. Choose SGLang over alternatives like vLLM when you need constrained decoding or are building applications with extensive prefix sharing.

View skill

evaluating-llms-harness

Testing

This Claude Skill runs the lm-evaluation-harness to benchmark LLMs across 60+ standardized academic tasks like MMLU and GSM8K. It's designed for developers to compare model quality, track training progress, or report academic results. The tool supports various backends including HuggingFace and vLLM models.

View skill

langchain

Meta

LangChain is a framework for building LLM applications using agents, chains, and RAG pipelines. It supports multiple LLM providers, offers 500+ integrations, and includes features like tool calling and memory management. Use it for rapid prototyping and deploying production systems like chatbots, autonomous agents, and question-answering services.

View skill

Algorithmic Art Generation

Meta

This skill helps developers create algorithmic art using p5.js, focusing on generative art, computational aesthetics, and interactive visualizations. It automatically activates for topics like "generative art" or "p5.js visualization" and guides you through creating unique algorithms with features like seeded randomness, flow fields, and particle systems. Use it when you need to build reproducible, code-driven artistic patterns.

View skill