Skip to content

Latest commit

 

History

History
19 lines (16 loc) · 886 Bytes

deployment.md

File metadata and controls

19 lines (16 loc) · 886 Bytes

Deployment - Documentation - Django Event Management

Backup

  • An SQL backup can be created with the following command:
    podman exec -t events_postgres_1 pg_dumpall -c -U django > dump.sql
  • Restore a backup:
    • podman stop events_events_1
    • podman exec -it events_postgres_1 psql -U django -d postgres -c "DROP DATABASE events;"
    • podman exec -it events_postgres_1 psql -U django -d postgres -c "CREATE DATABASE events;"
    • cat dump.sql | podman exec -i events_postgres_1 psql -U django --dbname=events
    • podman start events_events_1