Closed paulschreiber closed 1 week ago
To upgrade your local development environment With Postgres 14: ensure your backend Docker container is running (make run). Back up your database:
make run
CONTAINER_ID=`docker ps | grep postgis | cut -c 1-12` docker exec -it ${CONTAINER_ID} pg_dumpall -U postgres > terraso.sql
Delete the data directory:
docker compose -f docker-compose.dev.yml down docker volume rm backend_postgresql_data
With Postgres 16: ensure your backend Docker container is running (make run). Restore the data:
CONTAINER_ID=`docker ps | grep postgis | cut -c 1-12` cat terraso.sql| docker exec -i ${CONTAINER_ID} psql -U postgres
Description
To upgrade your local development environment With Postgres 14: ensure your backend Docker container is running (
make run
). Back up your database:Delete the data directory:
With Postgres 16: ensure your backend Docker container is running (
make run
). Restore the data: