Files
opengpts/tools/redis_to_postgres/README.md
T
2024-03-29 11:21:31 +04:00

633 B

OpenGPTs previously used Redis for data persistence, but has since switched to Postgres. If you have data in Redis that you would like to migrate to Postgres, follow the instructions below.

Navigate to the tools/redis_to_postgres directory and ensure that the environment variables in the docker-compose file are set correctly for your Redis and Postgres instances. Then, run the following command to perform the migration:

docker compose up --build --abort-on-container-exit

This will run database schema migrations for Postgres and then copy data from Redis to Postgres. Eventually all containers will be stopped.