postgresql data transfer

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.

3 answers

1 vote

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:


I hope it helps, let me know if you have any questions. smile



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.

1 vote

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



Dear Rodrigo, 

I tried the command as listed as below


But there is something wrong about it , how can we solve it ? Thank you.

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Kesha Thillainayagam
Posted Apr 13, 2018 in Confluence

We want to hear how your non-technical teams are using Confluence!

Hi Community! Kesha (kay-sha) from the Confluence marketing team here! Can you share stories with us on how your non-technical (think Marketing, Sales, HR, legal, etc.) teams are using Confluen...

2,909 views 27 12
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you