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
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 must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you again for your helpful answer! For now my questions are answered :)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
What happens if the primary is unreachable. Say a network outage for a few hours?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.