Postgres Data Migration
Please be aware that this functionality is available from v1.28.0.
If you wish to be able to view all of your existing data in Web Dashboard v2.x, you must run the data-migration commands before upgrading.
Please ensure you have available disk space before proceeding. For private server customers, we suggest increasing your available disk space to at least half of the current usage. If you have a separate disk for Postgres, increase this to half of the current Elasticsearch usage.
To view the current status of the migration from Elasticsearch to Postgres, run:
docker exec -ti backend bin/cli data-migration:statusTo migrate users, run:
docker exec -ti backend bin/cli data-migration:migrate-usersTo migrate sessions, run:
docker exec -ti backend bin/cli data-migration:migrate-sessionsOnce complete, you can switch to using Postgres as the primary data store by creating or updating a docker-compose.override.yml file in the same directory as the docker-compose.yml file.
For example:
# docker-compose.override.yml
version: '3'
services:
backend:
environment:
- PRIMARY_DATA_STORE=postgres
queue_worker:
environment:
- PRIMARY_DATA_STORE=postgresLast updated on