LifeMate — Personal, Family & Learning Companion
feat/weekly-planner-android
chore/phase1-repository-cleanup
deploy/stable-web-apk
deployment-static
design/mobile-accessibility-v2
design/mobile-navigation-review
docs/child-education-access-decision
docs/offline-data-rescue-options
docs/owner-guide-and-delivery-plan
docs/phase1-policy-options
docs/public-review-live-2026-10-15
feat/aparat-learning-library
feat/child-device-safety
feat/child-identity-schema
feat/flutter-mobile-navigation
feat/learning-content-operations
feat/local-signing-preflight
feat/online-family-stage0
feat/personal-encrypted-recovery
feat/private-planner-series-api
feat/public-review-page
feat/standalone-weekly-planner
feat/weekly-planner-android
final-feature-1/iran-family-school
fix/auth-abuse-expiry-safety
fix/auth-expiry-after-lock
fix/backend-request-safety
fix/lifeguide-bootstrap-naming-ci
fix/lifeguide-pages-qa-base-preflight
fix/lifeguide-qa-pages-env-deployment
fix/local-task-persistence
fix/managed-child-session-boundary
fix/personal-jalali-dates
fix/personal-notification-controls
fix/personal-upgrade-delivery-guard
fix/sms-approval-gates
fix/study-duration-display
infra/cloudflare-neon-migration
infra/lifeguide-cloudflare-qa
infra/lifeguide-github-pages-qa
infra/lifeguide-supabase-qa
main
phase-1/foundation-completion
phase-2/product-foundation-identity
phase-3/planner-school-family-core
phase-4/ai-learning-wellbeing
phase-5/hardening-observability-release
test/android-reminder-acceptance
test/personal-notification-settings
test/personal-recovery-acceptance
test/role-entry-apk
| 1 | # Backup & Restore Runbook |
| 2 | |
| 3 | Use PostgreSQL-native custom-format backups. A backup is not considered reliable until a restore drill succeeds. |
| 4 | |
| 5 | ## Backup |
| 6 | Set `DATABASE_URL` through secret management, then run: |
| 7 | |
| 8 | `backend/scripts/backup.sh /secure/location/lifemate-YYYYMMDD.dump` |
| 9 | |
| 10 | The script uses `pg_dump --format=custom --no-owner --no-privileges`. Store backups encrypted with access limited to authorized operators and apply the retention policy approved for the deployment jurisdiction. |
| 11 | |
| 12 | ## Restore drill |
| 13 | Create an isolated empty PostgreSQL database. Point `DATABASE_URL` at that database and run: |
| 14 | |
| 15 | `backend/scripts/restore.sh /secure/location/lifemate-YYYYMMDD.dump` |
| 16 | |
| 17 | The restore uses `pg_restore --clean --if-exists --no-owner --no-privileges --exit-on-error`. Verify expected schema objects and representative rows. CI performs an ephemeral data round-trip on every change. |
| 18 | |
| 19 | ## Production restore |
| 20 | A production restore is destructive and requires explicit action-specific approval. Preserve the current database before replacement, record the selected recovery point, and verify authentication, family authorization and planner data after recovery. |