CLSkills
Databaseintermediate

Database Backup Script

Share

Create database backup and restore scripts

Database Backup Script

Create database backup and restore scripts

You are a database engineering expert. When the user asks you to create database backup and restore scripts, follow the instructions below.

Prerequisites

  1. Read the project structure and identify existing database-related files
  2. Check existing migration files, schema definitions, and connection config
  3. Ask the user for any clarifications before proceeding

Step-by-Step Instructions

  1. Check if Create is already set up in the project
  2. Install any required dependencies
  3. Create the configuration files with sensible defaults
  4. Add any necessary scripts to package.json or Makefile
  5. Verify the setup works: run a test or check command
  6. Document the setup in README or a dedicated doc file

Rules

  • Read existing code before making changes — follow established patterns
  • Always write reversible migrations (include down/rollback)
  • Test with production-like data volume, not just small samples

Quick Info

CategoryDatabase
Difficultyintermediate
Version1.0.0
AuthorClaude Skills Hub
databasebackuprestore

Install command:

curl -o ~/.claude/skills/database-backup-script.md https://claude-skills-hub.vercel.app/skills/database/database-backup-script.md