How do I copy Postgres database to test server.

We want to test a BitBucket 4.11.1 to 5.x upgrade on a test server. We have installed BitBucket Version 4.11.1 (configuring to use internal database) and Postgres on a test server. We have restored a copy of the production Postgres database to the test server. What configuration can we do on the test server to point to the restored test database? We do not want to run a data migration; do something like shut down services - adjust some sort of config file - restart services.

1 answer

1 accepted

0 vote

Hi Kevin! You can find the configuration you need in the article Bitbucket Server Config properties.

If you have already copied your DB, then all you need to do is update the jdbc.url property to point to the copy of the database.

Hope this helps :)

Ana

Thanks Ana. That is exactly what we were looking for. (bitbucket.properties file located at BITBUCKET_HOME\shared). We also need to shut down the services on prod and copy over the entire BITBUCKET_HOME folder to the test server as well.

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Jun 12, 2018 in Bitbucket

Do you use any Atlassian products for your personal projects?

After spinning my wheels trying to get organized enough to write a book for National Novel Writing Month (NaNoWriMo) I took my affinity for Atlassian products from my work life and decided to tr...

23,437 views 26 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