Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

How to migrate from Bitbucket Server to Bitbucket cloud

Gary Zhao April 24, 2018

I tried to do a search but came up empty.

We currently have a Bitbucket Server (5.7.1) instance running on our private network using PostgreSQL for our DB.

We would like to shift to mirroring our codebase on bitbucket cloud and keep the local server as well. I couldn't find any guide online on how to do this.

Before I start playing around, I wanted to see if there were some recommended work flow on how to accomplish this.

I obviously can't just upgrade it, because the installer doesn't really seem to have the option to upgrade from one type to another. Do I have to install a whole new instance and then migrate the data over? Do I have to have the cloud account up and running first?

Any advice would be appreciated.

2 answers

4 votes
Maren
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
March 25, 2019

Hi there,

As you've found, we currently only support migrating repository data (your source code) from Bitbucket Server to Bitbucket Cloud. There's no supported method for migrating user accounts, permission structures, or repository metadata like pull request history and comments. We're currently gathering interesting in this feature, so if this is something you need we recommend watching or voting for this issue.

For more information about migrating from Bitbucket Server to cloud, I recommend reviewing Plan your Bitbucket Server to cloud migration

As outlined in the guide, there are a few ways to move your data to the cloud:

  1. Use our repository importer to import individual repositories. To migrate using the importer, your Bitbucket Server domain needs to be publicly accessible. If it's not publicly accessible Bitbucket Cloud will not be able to access to your Bitbucket Server to perform the import.
  2. You can also create a new repository on Bitbucket Cloud, and then simply push from your local repository to the new repository in Bitbucket Cloud.
  3. If you have a lot of repositories, Bitbucket Cloud provides APIs for you to script the creation and pushing of repositories in bulk.

For more info to help you decide if moving from server to cloud is a good option for you, check out our Atlassian Cloud Migration Center

I hope this helps, and please don't hesitate to reach out with questions. 

0 votes
NotTheRealStephenSifersNOPENOPENOPENOPE
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 24, 2018

This should have your answer here:

https://confluence.atlassian.com/confeval/other-atlassian-evaluator-resources/migrating-from-server-to-cloud

Bitbucket migration

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events