Pushing to a Bitbucket Smart Mirror

I am working as a SoftwareEngineer/ScrumMaster in a consulting company that is developing software for different customers. One of our customers is hosting his own Bitbucket server and we are currently accessing it via VPN to do the pushes and fetches.

I am currently looking into mirroring solutions where my company is using a Git server and this server is a complete mirror of the bitbucket server of my customer. I've developed my own solution where I am using Git hooks to delegate requests, but by accident I found the Smart Mirroring Feature and now I am really interested if this product might be something for my company.

Here's the most important question: Is it possible to push to a mirror? In https://confluence.atlassian.com/bitbucketserver/smart-mirroring-776640046.html the diagram only shows "Clone & Fetch" but the pushing is done to the main repository, on the other side the text below states that pushing is possible to the mirror.

In my scenario the developers are in our company intranet and should only see the Mirror, all Git operations should be done via the Mirror. I do not want that the users are directly using the Main repository (since every user needs to pay some amount of remote-access-fee which I am trying to cut down)

I hope someone can help me with this question!

Best regards from Germany

2 answers

1 accepted

2 votes

Pushing to mirror is possible in the latest version of Bitbucket Datacenter. The diagram might be outdated.

Thank you for your answer! I am wondering: 

When my company gets a datacenter license, does my customer also need a datacenter license?

You mentioned that your companies Git server is a mirror of your customer's. In that case, only the customer needs a bitbucket data center license. You will only be installing the mirror on your end and that doesn't need a license. It is covered in the Datacenter master license.

Thank you again for your helpful answer! For now my questions are answered :)

Hi Jobin, I had tried installing smart mirror last month and the push to the mirror was not allowed. Is the push supported from the latest version onwards and would that be a permanent feature? We are heavily relying on the mirror feature.

It is available in the latest version. And yes, it should be a permenant feature, unless something goes horribly wrong or they come up with an alternative.

thanks a lot for the info!

0 vote

The mentioned article says:

Yes, you can push to the repository using the same URL, and Bitbucket relays the push to the upstream repository.

As far as I understood the mirror plays the role of a proxy and just delegates the push command to the primary bitbucket data center. 

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
Published Thursday in Marketplace Apps

Tips on how to choose the best estimation method for your planning

Planning and grooming sessions all come with their own sets of rules. Team members meet to estimate stories or other work items, all according to an agreed-upon process. And with every session comes ...

71 views 0 11
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