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 :)


Thanks Ana. That is exactly what we were looking for. ( 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 Join to answer
Community showcase
Piotr Plewa
Published Dec 27, 2017 in Bitbucket

Recipe: Deploying AWS Lambda functions with Bitbucket Pipelines

Bitbucket Pipelines helps me manage and automate a number of serverless deployments to AWS Lambda and this is how I do it. I'm building Node.js Lambda functions using node-lambda&nbsp...

717 views 0 4
Read article

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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot