Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 7 additions & 6 deletions docs/source/Installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -320,13 +320,14 @@ The database migration procedure is as follows:
- You have IntelOwl version 5.x.x up and running
- Bring down the application (you can use the start script or manually concatenate your docker compose configuration )
- Go inside the docker folder `cd docker`
- Bring only the postgres 12 container up `docker run -d --name intelowl_postgres_12 -v intelowl_postgres_data:/var/lib/postgresql/data/ --env-file env_file_postgres library/postgres:12-alpine `
- Dump the entire database. You need the user and the database that you configured during startup for this `docker exec -t intelowl_postgres_12 pg_dump -U $POSTGRES_USER -d $POSTGRES_DB --no-owner> /tmp/dump_intelowl.sql `
- Remove the backup container `docker rm intelowl_postgres_12`
- Bring only the postgres 12 container up `docker run -d --name intelowl_postgres_12 -v intelowl_postgres_data:/var/lib/postgresql/data/ --env-file env_file_postgres library/postgres:12-alpine`
- Dump the entire database. You need the user and the database that you configured during startup for this `docker exec -t intelowl_postgres_12 pg_dump -U <POSTGRES_USER> -d <POSTGRES_DB> --no-owner > /tmp/dump_intelowl.sql`
- Stop che container `docker container stop intelowl_postgres_12`
- Remove the backup container `docker container rm intelowl_postgres_12`
- Remove the postgres volume `docker volume rm intelowl_postgres_data`
- Start the intermediary postgres 16 container `docker run -d --name intelowl_postgres_16 -v postgres_data:/var/lib/postgresql/data/ --env-file env_file_postgres library/postgres:16-alpine `
- Add the data to the volume `cat /tmp/dump_postgres.sql| docker exec -i intelowl_postgres_16 psql -U $POSTGRES_USER -d $POSTGRES_PASSWORD`
- Remove the intermediary container `docker rm intelowl_postgres_16`
- Start the intermediary postgres 16 container `docker run -d --name intelowl_postgres_16 -v postgres_data:/var/lib/postgresql/data/ --env-file env_file_postgres library/postgres:16-alpine`
- Add the data to the volume `cat /tmp/dump_intelowl.sql | docker exec -i intelowl_postgres_16 psql -U <POSTGRES_USER> -d <POSTGRES_DB>`
- Remove the intermediary container `docker container rm intelowl_postgres_16`
- Update IntelOwl to the latest version
- Bring up the application back again (you can use the start script or manually concatenate your docker compose configuration)

Expand Down