Backup
Create automated database backup scripts and schedules
- Type
- Slash Command
- Repository
- jeremylongshore/tons-of-skills-marketplace
- GitHub stars
- 2.8k
- License
- MIT
- Repo last updated
- Sep 27, 2026
What Backup is
Backup is a slash command published in the jeremylongshore/tons-of-skills-marketplace repository on GitHub, which has about 2.8k stars. The repository describes itself as: “Model-agnostic agent-skills platform with a harness-free canonical layer, verified adapters, and the ccpi package manager. Explore at tonsofskills.com.”
A slash command is a reusable prompt saved as a markdown file and run by typing its name after a slash. In Claude Code, custom commands have been merged into skills: a file in .claude/commands/ and a skill folder in .claude/skills/ both create the same kind of command, and existing command files keep working.
Backup gives you a repeatable way to run the same instructions without retyping them, optionally with arguments.
How to install Backup
Claude Code
- Download backup.md from the repository.
- Save it to ~/.claude/commands/ (all projects) or .claude/commands/ (one project). As a skill, you can instead save it as ~/.claude/skills/<name>/SKILL.md.
- Run it by typing / followed by its name.
Claude Cowork
- Turn the command into a skill: create a folder with the file saved as SKILL.md and zip it.
- In Customize → Skills, click +, then upload the ZIP.
- Run it from any task with / and the skill name.
New to extending Cowork? Our plugins guide and Customize guide explain how skills, plugins, and connectors fit together.
Inside the source file
An excerpt from plugins/database/database-backup-automator/commands/backup.md, shared under the repository's MIT license. Read the full file on GitHub.
You are a database backup specialist. Create comprehensive backup solutions with automation, monitoring, and recovery procedures.
Backup Strategy Components
- Backup Types
- Full backups: Complete database dump
- Incremental: Changes since last backup
- Differential: Changes since last full backup
- Point-in-time recovery: Transaction log backups
- Automation Setup
- Cron jobs for scheduled backups
- Pre-backup validation checks
- Post-backup verification
- Retention policies
- Rotation strategies
- Storage Options
- Local storage with rotation
- Cloud storage (S3, GCS, Azure)
- Network attached storage
- Offsite replication
- Security Measures
- Encryption at rest
- Encryption in transit
- Access control
- Audit logging
Backup Script Template (PostgreSQL)
#!/bin/bash
# PostgreSQL Backup Script
BACKUP_DIR="/var/backups/postgresql"
DB_NAME="mydb"
DATE=$(date +%Y%m%d_%H%M%S)
BACKUP_FILE="$BACKUP_DIR/${DB_NAME}_${DATE}.sql.gz"
RETENTION_DAYS=7
# Create backup
pg_dump $DB_NAME | gzip > $BACKUP_FILE
# Verify backup
if [ $? -eq 0 ]; then
echo "Backup successful: $BACKUP_FILE"
# Remove old backups
find $BACKUP_DIR -name "${DB_NAME}_*.sql.gz" -mtime +$RETENTION_DAYS -delete
…Restore Procedure Template
#!/bin/bash
# PostgreSQL Restore Script
BACKUP_FILE=$1
if [ -z "$BACKUP_FILE" ]; then
echo "Usage: $0 <backup_file.sql.gz>"
exit 1
fi
# Restore database
gunzip < $BACKUP_FILE | psql $DB_NAME
if [ $? -eq 0 ]; then
echo "Restore successful"
else
echo "Restore failed!"
exit 1
…Cron Schedule Examples
# Daily backup at 2 AM
0 2 * * * /path/to/backup.sh
# Hourly incremental backups
0 * * * * /path/to/incremental_backup.sh
# Weekly full backup on Sunday at 3 AM
0 3 * * 0 /path/to/full_backup.shMonitoring Checklist
- Backup completion status
- Backup file size tracking
- Storage space monitoring
- Failed backup alerts
- Restore testing schedule
- Recovery time objectives (RTO)
- Recovery point objectives (RPO)
When Invoked
- Identify database system (PostgreSQL, MySQL, MongoDB, etc.)
- Determine backup frequency and retention
- Generate backup scripts
- Create restore procedures
- Set up monitoring and alerts
- Provide testing instructions
Before you install
- Read the whole file first. Skills, commands, and subagents are instructions Claude will follow, so make sure they match what you want.
- Check which tools, scripts, or MCP servers it uses. Local servers and scripts run with your permissions.
- Try it in a test project or a copy of your files before pointing it at real work.
- Pin the version you tested, and review changes before updating.
- Watch for instructions that fetch web content or run shell commands; those are where prompt injection risks start. See our prompt injection guide.
FAQ
What is Backup?
Backup is a slash command for Claude Code and Claude Cowork from the jeremylongshore/tons-of-skills-marketplace repository on GitHub. Create automated database backup scripts and schedules
How do I install Backup in Claude Code?
Download backup.md from the repository. Save it to ~/.claude/commands/ (all projects) or .claude/commands/ (one project). As a skill, you can instead save it as ~/.claude/skills/<name>/SKILL.md. Run it by typing / followed by its name.
Can I use Backup in Claude Cowork?
Turn the command into a skill: create a folder with the file saved as SKILL.md and zip it. In Customize → Skills, click +, then upload the ZIP. Run it from any task with / and the skill name.
Is Backup safe to install?
It is a third-party community resource, not reviewed by Anthropic or this site. Read the source file first, check which tools and connectors it uses, and install only from sources you trust.
Similar resources
- Rag Pipeline Gen Generate complete RAG pipeline with embeddings, vector DB, and retrieval Slash Command · jeremylongshore/tons-of-skills-marketplace
- Real User Monitoring Implement Real User Monitoring for actual performance data Plugin · jeremylongshore/tons-of-skills-marketplace
- Recommendation Engine Build recommendation systems and engines Plugin · jeremylongshore/tons-of-skills-marketplace
- Record Start, stop, pause, or mark moments in screen recordings with organized file Slash Command · jeremylongshore/tons-of-skills-marketplace
- Backup Strategy Design a backup strategy with schedules, retention, storage tiers, and recovery. Slash Command · jeremylongshore/tons-of-skills-marketplace
- Backtest Strategy Backtest trading strategies with historical data and comprehensive Slash Command · jeremylongshore/tons-of-skills-marketplace
- Branch Create Create feature branch with team naming convention Slash Command · jeremylongshore/tons-of-skills-marketplace
- Auto Scale Configure auto-scaling policies for applications and infrastructure Slash Command · jeremylongshore/tons-of-skills-marketplace