- Add backup-postgres.sh with pg_dump custom format (-Fc) - Verify backup integrity via pg_restore --list - Compress backups with gzip for storage efficiency - Delete backups older than 30 days (configurable via RETENTION_DAYS) - Weekly restore test on Mondays to validate backup usability - Add cron configuration for daily 2 AM backups - Add .gitignore for pycache, env files, and backup files
56 lines
482 B
Text
56 lines
482 B
Text
# Python
|
|
__pycache__/
|
|
*.py[cod]
|
|
*$py.class
|
|
*.so
|
|
.Python
|
|
build/
|
|
develop-eggs/
|
|
dist/
|
|
downloads/
|
|
eggs/
|
|
.eggs/
|
|
lib/
|
|
lib64/
|
|
parts/
|
|
sdist/
|
|
var/
|
|
wheels/
|
|
*.egg-info/
|
|
.installed.cfg
|
|
*.egg
|
|
|
|
# Virtual environments
|
|
.venv/
|
|
venv/
|
|
ENV/
|
|
|
|
# IDE
|
|
.idea/
|
|
.vscode/
|
|
*.swp
|
|
*.swo
|
|
*~
|
|
|
|
# Environment variables
|
|
.env
|
|
.env.local
|
|
.env.*.local
|
|
|
|
# Testing
|
|
.coverage
|
|
htmlcov/
|
|
.pytest_cache/
|
|
.mypy_cache/
|
|
|
|
# Database backups (should not be in repo)
|
|
*.dump
|
|
*.dump.gz
|
|
/backups/
|
|
|
|
# Logs
|
|
*.log
|
|
|
|
# OS
|
|
.DS_Store
|
|
Thumbs.db
|