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
Accepted answer

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!

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. 

What happens if the primary is unreachable. Say a network outage for a few hours?

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Nov 06, 2018 in Bitbucket

Upgrade Best Practices

Hello! My name is Mark Askew and I am a Premier Support Engineer for products Bitbucket Server/Data Center, Fisheye & Crucible. Today, I want to bring the discussion that Jennifer, Matt, and ...

685 views 5 9
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