How to migrate from Bitbucket Server to Bitbucket cloud

Please give me an answer if it possible to migrate from Bitbucket Server to Bitbucket Cloud by Bitbucket solutions and possibilities? 

4 answers

1 accepted

1 vote
Answer accepted

No. You will have to write a script that clones all repos from server and pushes to new remote in cloud.

https://community.atlassian.com/t5/Bitbucket-questions/Bitbucket-Server-Rest-Api-Clone-all-repositories/qaq-p/626578#M18561

Thank you for information! 

 

But we also need to migrate user profiles with permissions. Easy to say, we need to clone everything that server contains to Bitbucket cloud.

The users will have to be recreated/invited in cloud. Then you can save the group information from server using the api to a list and update cloud.

https://confluence.atlassian.com/confeval/development-tools-evaluator-resources/bitbucket/bitbucket-migrate-bitbucket-cloud-to-bitbucket-server

It's mind-boggling that Atlassian does not have a tool or provide any support for migrating to Bitbucket Server to Bitbucket Cloud.  Has no one ever done this before?  Do they not want people to use Bitbucket Cloud if they already have Server? 

I am planning a migration away from Bitbucket Server to a cloud hosted git service and was considering Bitbucket Cloud, but maybe I will take a second look at migrating to GitHub or GitLab instead.

We have about 200 projects, 500 repos to migrate and lack of any real support from Atlassian is extremely disappointing.

I agree with you! I think that Atlassian should think about this opportunity, because a lot of companies needs this service.

Just found this after doing a quick search. I'm about to embark in a migration of over 1000 repos from Server to Cloud. Really disappointed there is not automatic way of doing this. I'll be doing it by hand and with manual scripts it looks like.

Ok. thank you for information. I'll try your solution. 

@Shawn Woodford - this is fantastic! Haven't tried it but dug around in the script. Will keep this on the shelf for my next migration. Thanks much!

Great hopefully this works for you!

I hope I just haven't dug around the forum enough and that I'm wrong.  But how Atlassian can have the two products, push heavily for cloud and not supply a way to migrate that is pretty much push a button is beyond me. Now I need to do a honest look at whether it is worth staying on bitbucket or if it is time to move to github or gitlabs. 

@Turlach MacDonagh - doing a bulk migration isn't overly complex. Just need to plan first. You are right that there should be a simple way to migrate from both systems easily.

are you referring to the git repos or the metadata that winds up in bitbucket? The git repos are dead simple to move. And the metadata should be as well. To build a script and plan out the migration is all time and energy that can be better spent on other things. To have a cloud product and not offer the easy "hey press this button and migrate your self hosted bitbucket to the cloud version" is a bit crazy from where I stand because now I ask myself, is it better to migrate it to github if it is going to be a lot of work to migrate from bitbucket server to cloud. 

Just feeling a bit frustrated that it is something Atlassian should have included in a cloud product. 

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Mar 14, 2019 in Bitbucket Pipelines

Building a Bitbucket Pipe as a casual coder

...ipe.sh :  #!/bin/bash source "$(dirname "$0")/common.sh" enable_debug extra_args="" if [[ "${DEBUG}" == "true" ]]; then extra_args="--verbose" fi # mandatory variables R...

244 views 0 12
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