Automated backup and restore for PostgreSQL MySQL SQLite
Scanned 9/10/2026
Install to Claude Code
npx -y skills add LoopyLuci/Skills --skill database-backup-strategies --agent claude-codeInstalls 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 automatically with every re-scan.
[](https://www.skillsdirectory.com/skills/loopyluci-database-backup-strategies)More formats (shields.io, HTML) on the badges page.
---
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
```
Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.
No comments yet. Be the first to comment!