Migrate from Stash 3.8.1 Server to Dockerized Bitbucket 5.5

We have a Linux-based Stash 3.8.1 server, and we are looking to migrate all of the data from Stash to Bitbucket 5.5 on a new server using the official Atlassian Bitbucket Docker image.

I've done a lot of searching but I can't find reference to anyone else having done this using Docker.

I assume that by moving to a Docker image we're unable to run the Bitbucket installer and therefore unable to perform the upgrade procedure?

 

Is anybody able to assist with the best way to perform this migration?

1 answer

0 vote

Hi Adam,

Here's how I would approach this kind of task - I'd first upgrade from 3.8.1 to 5.5 on the existing machine, then I'd verify that upgrade actually worked fine and that everything is still as it should be.

Once confirmed, I'd stop Bitbucket Server on the existing machine, copy the entire Bitbucket home directory and take a backup of the database. 

Once that's done I'd copy the contents of the Bitbucket home directory to the corresponding location in the Docker image's directory structure, restore the database, and update the database properties in the bitbucket.properties file in the Docker image to point to the new database location.

Once finished I'd bring up the Docker image and see if I can access Bitbucket 5.5.

Cheers,

Christian

Premier Support Engineer

Atlassian

Hi Christian, thanks for the suggestion :)

There is a strong possibility that we won't be permitted to modify the existing Stash server.  How would you do the migration in this case?

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 06, 2018 in Bitbucket

Do you use Bitbucket Cloud and Jira Cloud? If so, let us know!

Hi Community, I'm Julia and I'm on the Jira Software Cloud marketing team!  We're looking for companies or teams using Bitbucket Cloud and Jira Software Cloud. If your team fits the t...

171 views 6 3
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