HabitaNexus/monorepo / skills/system-reliability-engineering/database-reliability
database-reliability
Verified| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 14.6 KB |
| scripts/README.md | markdown | 1.5 KB |
| scripts/postgresql_backup.py | script | 12.6 KB |
| scripts/requirements.txt | manifest | 347 B |
scripts/README.md
View on GitHub# Database Reliability Scripts
Scripts ejecutables para gestión de confiabilidad de bases de datos: backups, restauración y limpieza.
## 📁 Archivos
- **`postgresql_backup.py`** - Automatización de backups y restauración de PostgreSQL
- **`requirements.txt`** - Dependencias (ninguna, usa solo stdlib)
## 🚀 Quick Start
### PostgreSQL Backup
No requiere instalación de dependencias Python (usa solo stdlib):
```bash
# Crear backup completo
python postgresql_backup.py backup \
--host localhost \
--user backup_user \
--backup-dir /backup/postgresql
# Listar backups disponibles
python postgresql_backup.py list --backup-dir /backup/postgresql
# Limpiar backups antiguos (dry-run)
python postgresql_backup.py cleanup \
--backup-dir /backup/postgresql \
--retention-days 30 \
--dry-run
# Restaurar desde backup
python postgresql_backup.py restore \
--backup-path /backup/postgresql/full_20240115_120000 \
--target-dir /var/lib/postgresql/data
```
## 📋 Requisitos del Sistema
El script requiere herramientas del sistema PostgreSQL:
- `pg_basebackup` - Para crear backups físicos
- `pg_verifybackup` - Para verificar backups (opcional)
- `tar` - Para extraer backups
- `systemctl` - Para gestionar servicios (opcional, puede hacerse manualmente)
## 📖 Documentación Completa
Ver [`../SKILL.md`](../SKILL.md) para documentación completa sobre:
- Configuración de replicación
- Failover automático
- Connection pooling
- Estrategias de backup
- Monitoreo de bases de datos
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| deprecation-and-migrationaddyosmani/agent-skillsManages deprecation and migration. Use when removing old systems, APIs, or features. Use when migrating users from one implementation to another. Use when migrating a database schema in production, such as renaming or dropping a column without downtime (expand/contract). Use when deciding whether to maintain or sunset existing code. | Stars: 119k | Updated | Claude CodeCodex | Verified | Install |
| performance-optimizationaddyosmani/agent-skillsOptimizes application performance across frontend, backend, queries, and databases. Use when performance requirements exist, when you suspect performance regressions, when Core Web Vitals or load times need improvement, when N+1 query patterns need fixing, or when profiling reveals bottlenecks. | Stars: 119k | Updated | Claude CodeCodex | Verified | Install |
| agent-cost-reportthedotmack/claude-memBelievable agent cost report for any period, default the last 7 full days PT, not counting today. Measured tokens from Claude Code transcripts priced at OpenRouter list prices (ESTIMATED), measured provider spend when a sanctioned source exists, note-taker cost separate, Timing-style HTML/PDF plus report.json, line-items.csv, evidence.json. | Stars: 118k | Updated | Claude CodeCodex | Verified | Install |
| agent-cost-reportthedotmack/claude-memBelievable agent cost report for any period, default the last 7 full days PT, not counting today. Measured tokens from Claude Code transcripts priced at OpenRouter list prices (ESTIMATED), measured provider spend when a sanctioned source exists, note-taker cost separate, Timing-style HTML/PDF plus report.json, line-items.csv, evidence.json. | Stars: 118k | Updated | Claude CodeCodex | Verified | Install |