Dear all,
If we install a new postgresql server, how can we transfer our original confluence data to the new postgresql server? (We setup application and database server, application is new confluence, database is empty one. We want to try transfer our original postgresql to our new postgresql server)
Thank you.
Hi Hsu,
I usually use this command to export the database from a postgres and import into another postgres:
pg_dump -h database_host_name -p database_port -U database_user database_schema > c:\file_name.dmp
psql -h database_host_name -p database_port -U database_user database_schema < c:\file_name.dmp
Cheers,
Rodrigo
Hello Hsu,
If you are already using Postgres on the current Confluence installation, then all you need to do is to export to a .sql file the current database and import this .sql file into the new PostgreSQL server.
Then, once you've done this you can edit the confluence.cfg.xml file, located under your Confluence data/home directory, to change the connection details with your database and point it to the new one.
However, in case you are migrating from a database that is not a postgres to a postgres database, please have a look at this guide: https://confluence.atlassian.com/doc/migrating-to-another-database-148867.html
I hope it helps, let me know if you have any questions.
Eduardo
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Dear Eduardo, Thank you for your reply. But we must make sure how can we export .sql file ? Is there any information about it ? Thank you.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Dear Rodrigo,
I tried the command as listed as below
psql2.jpg
But there is something wrong about it , how can we solve it ? Thank you.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Spend the day sharpening your skills in Atlassian Cloud Organization Admin or Jira Administration, then take the exam onsite. Already ready? Take one - or more - of 12 different certification exams while you’re in Anaheim at Team' 25.
Learn more
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.