Transitioning PostgreSQL From Docker on K8s to Standalone PostgreSQL
This document describes how to migrate from Docker PostgreSQL to standalone PostgreSQL with existing data.
Steps for migrating postgresql to an external instance:
pg_dump -c --if-exists -h <hostname> -p <port> -U <dbuser> -d "<dbname>" -f <backupfilename.dump>pg_dump -c --if-exists -h localhost -p 5432 -U pbmsuser -d "pbmsdb" -f pbmsdb.dump
psql -U dbuser -h localhost -d dbname -f backupfile.dumppsql -U pbmsuser -h localhost -d pbmsdb -f pbmsdb.dump
#Make the default postgresql enabled equals to false. postgresql: auth: database: pbmsdb username: pbmsuser enabled: false#Add the below parameters in the last section of default postgresql. externalDatabase: create: false database: socialregistrydb/pbmsdb host: <IP address of External DB> password: <password for DB> port: 5432 user: socialregistryuser/pbmsuser/post-init-openg2p.sh
odoo-conf.png
Last updated
Was this helpful?

