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.
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.
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.
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.
Announced in this blog, this holiday season we’re celebrating all things CI/CD and between now and the end of 2019 we’ll be showcasing content, use cases, feature announcements and more. One featur...
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