Skip to content
Back to skills

Database Backup Strategies

ASecurity

Automated backup and restore for PostgreSQL MySQL SQLite

  • 2 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 10, 2026
ai-agentsbashsqldatabase

Security analysis

A100/100

Scanned September 10, 2026

npx -y skills add LoopyLuci/Skills --skill database-backup-strategies --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Database Backup Strategies?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Database Backup Strategies
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/loopyluci-database-backup-strategies/badge)](https://www.skillsdirectory.com/skills/loopyluci-database-backup-strategies)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: database-backup-strategies
description: "Automated backup and restore for PostgreSQL MySQL SQLite"
---

# Database Backup Strategies

## PostgreSQL
```bash
pg_dump -Fc mydb > mydb.dump
pg_restore -d mydb mydb.dump
```

## MySQL
```bash
mysqldump -u root mydb > mydb.sql
mysql -u root mydb < mydb.sql
```

## SQLite
```bash
sqlite3 mydb.db ".backup mydb.backup"
sqlite3 mydb.db ".restore mydb.backup"
```

## Automated (Cron)
```bash
0 2 * * * pg_dump -Fc mydb > /backups/mydb_$(date +%Y%m%d).dump
# Keep 7 days, remove older
0 4 * * * find /backups -name "*.dump" -mtime +7 -delete
```

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.