Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Is there a way to build a mirror repository on the company's local network in bitbucket cloud?

IkHyeon Jin August 6, 2023


My current company is using bitbucket.
It often happens that new source code is received from Bitbucket Cloud while using a local build agent with many developers.

In this case, the company network speed delay occurs.
I'm feeling the need to build a local bitbucket repository on-premise.

Looking through the documentation, it says that Bitbucket Cloud's Smart Mirroring is deprecated.

Migrating Bitbucket Cloud to a data center or elsewhere is difficult.
Is there any other way to configure on-premise local bitbucket repository?

We need a way to solve network delay.

- I don't have administrator role, so I'm looking for a way to build a new system.
- Removal of LFS files from git repositories was not welcomed by developers.

1 answer

1 accepted

0 votes
Answer accepted
Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 8, 2023

Hi @IkHyeon Jin,

I'm afraid that we don't have any alternative for smart mirroring.

Configuring something like this would mean building it from scratch. You could use a Bitbucket Data Center instance in order to import Bitbucket Cloud repos. You could then configure webhooks so that they are kept in sync and in order to also import any new Bitbucket Cloud repos to the instance.

Building and maintaining such an integration and resolving any issues that may arise may be quite time-consuming.

You could look into figuring out a solution on the network level instead.

Kind regards,

IkHyeon Jin August 8, 2023

Hello Theodora
Thank you for your reply.

There is something I don't understand, so I'll ask more questions.

1. Can I use the mirror function when using a Bitbucket Data Center instance?
Or do I have to push to the Bitbucket Data Center instance via a Bitbucket Cloud webhook? (Like performing a git push to another repository to the pipeline yml of the repos)

2. If I use a Bitbucket Data Center instance, are Bitbucket Cloud's user accounts and other permissions synced?

Please reply when you have time.
Have a good day.

Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 9, 2023

Hi @IkHyeon Jin,

A Bitbucket Data Center instance cannot mirror Bitbucket Cloud repos or sync Bitbucket Cloud user accounts and permissions. This is why I mentioned that you would need to build something from scratch and use webhooks for syncing.

Please feel free to let me know if you have any other questions.

Kind regards,

Like IkHyeon Jin likes this
IkHyeon Jin August 9, 2023

I appreciate your quick response

Like Theodora Boudale likes this

Suggest an answer

Log in or Sign up to answer
AUG Leaders

Atlassian Community Events