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 votes
Answer accepted

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 Sign up to answer
Community showcase
Published Thursday in Bitbucket Pipelines

Building a Bitbucket Pipe as a casual coder :  #!/bin/bash source "$(dirname "$0")/" enable_debug extra_args="" if [[ "${DEBUG}" == "true" ]]; then extra_args="--verbose" fi # mandatory variables ROLLBAR_ACCESS_TOKEN...

164 views 0 11
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