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

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

What's the best way to migrate from Github Server to Bitbucket Cloud?

Esther Strom Community Leader Jan 05, 2021

We've done a number of departmental migrations from Github's web-based system using the built-in tool in Bitbucket Cloud. 

We now have a requirement to migrate repos that live on a Github Enterprise (on-prem) server. 

I've seen suggestions to write a script that will do it, but am wondering if there are any other ways.

1 answer

1 vote

Hi Esther,

If the server is not accessible from the internet, one idea would be to whitelist (perhaps temporarily) Bitbucket Cloud IPs (see here) and then you should be able to import the repos with the importer:

The importer will work with any Git-based hosting site, as long as Bitbucket can reach it.

Kind regards,

Esther Strom Community Leader Jan 06, 2021

Thanks, Theodora. I'm a little confused, though. Bitbucket Cloud IP addresses are already publicly accessible. How does whitelisting them make my on-prem server accessible to Cloud? The import tool runs from the Cloud side, so it seems like I'd need to make the on-prem server accesssible, not the other way around.

Hi Esther,

Sorry if my message wasn't very clear.

You will indeed need to make the on-premise server accessible.

One way is to do that is to make the server accessible from anywhere over the internet (if it isn't already).

If you don't want to make the server accessible from anywhere over the internet, you can whitelist on your firewall only the Bitbucket IP addresses.

This way, Bitbucket will be able to connect to your server, for the purposes of the import, but connections to your server from elsewhere (IPs that are not whitelisted in your firewall) will not be possible.

I hope this helps, please feel free to let me know if you have any other questions.

Kind regards,

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Bitbucket

New improvements to user management in Bitbucket Cloud 👥

Hey Community! We’re willing to wager that quite a few of you not only use Bitbucket, but administer it too. Our team is excited to share that we’ll be releasing improvements throughout this month of...

3,850 views 10 16
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you