scripts/db-backup.sh provides three commands: - backup: creates a timestamped, gzipped pg_dump (custom format) in ./backups/ - restore: drops, recreates, and loads a backup with confirmation prompt - list: shows available backups with sizes and dates Supports --keep N flag for automatic pruning of backups older than N days, making it cron-friendly for daily automated backups. Also adds backups/ and *.dump.gz to .gitignore. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
47 lines
384 B
Plaintext
47 lines
384 B
Plaintext
# Dependencies
|
|
node_modules/
|
|
|
|
# Build outputs
|
|
dist/
|
|
build/
|
|
|
|
# Environment
|
|
.env
|
|
.env.local
|
|
.env.*.local
|
|
secrets/
|
|
|
|
# Logs
|
|
*.log
|
|
npm-debug.log*
|
|
|
|
# OS
|
|
.DS_Store
|
|
Thumbs.db
|
|
|
|
# Docker volumes
|
|
postgres_data/
|
|
redis_data/
|
|
pgdata/
|
|
|
|
# Database backups
|
|
backups/
|
|
*.dump
|
|
*.dump.gz
|
|
|
|
# SSL
|
|
letsencrypt/
|
|
|
|
# Coverage
|
|
coverage/
|
|
.nyc_output/
|
|
|
|
# IDE
|
|
.idea/
|
|
.vscode/
|
|
*.swp
|
|
*.swo
|
|
|
|
# TypeScript
|
|
*.tsbuildinfo
|