Private BitBucket Data Center server smart mirroring to BitBucket Cloud

I am currently researching a way to mirror a private git server repository with a public cloud solution. BitBuckets smart mirror feature seems interesting but i fail to find a description for a

Primary BitBucket Data Center repository <--> BitBucket cloud service repository

setup.

The reason being is, that we wish to keep sensitive files on our own git repository like the BitBucket Data Center, due to company policy, and keep the raw codebase mirrored in a cloud based solution such that it is available to consultants that otherwise won't have access to our BitBucket Data Center.

A possible use case could be:

  • We make changes to a repository on our local BitBucket server
  • The repository is mirrored to a BitBucket cloud based repository
  • A consultant makes some change/introduces new code
  • The consultant pushes the code to the mirror
  • The repository is mirrored back to the the local BitBucket server

Is it possible for such a setup?

 

1 answer

1 accepted

0 vote

Hi Michael, you can not use Bitbucket Cloud as a mirror, for both scenarios (mirroring a Server or a Cloud instance) you'll need to use Bitbucket Server for the mirror itself. Mirrors run the same Bitbucket application as a full Bitbucket Server instance.

You can read more about this at Set up a mirror, Smart mirroring for Bitbucket Cloud and Set up Bitbucket Smart mirroring in CloudIn the case of Cloud, you'll need to have a Premium account on Bitbucket Cloud.

Let us know if you have any more questions!

Cheers,

Ana 

Hi Ana

Thanks for clearing that up.

What strategy/best practice would Atlassian then suggest in our case?

Regards
Michael

Hi Michael,

For what you're describing Atlassian will almost certainly suggest you take the Data Center version of BitBucket, set up a primary node cluster closest to your primariy development team, and then add "Smart Mirrors" in any region that is geographically distant from that primary location. 

BitBucket actually has multiple levels of security built in so you shouldn't have any problem segmenting your code base by project, repository, and even branch. Smart Mirroring isn't doing anything to help in this respect, its just a way to augment performance for teams that would otherwise have to pull large code sets over an extended distance. 

I hope that helps. 

Brandon

Hi Brandon

Thanks for you input.

Regards
Michael

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

Do you use any Atlassian products for your personal projects?

After spinning my wheels trying to get organized enough to write a book for National Novel Writing Month (NaNoWriMo) I took my affinity for Atlassian products from my work life and decided to tr...

27,815 views 26 12
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