Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to get Repository mirroring in Bitbucket standalone server

Iranna Jadimath
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 4, 2018

We are using Bitbucket standalone server version 4.14 .

we have to mirror the repository from remotely hosted bitbucket server .

As I used import repository option to download the repository for once and can't keep update the repository with new commit. Since we are using standalone server, unable to use "mirror " add-on which required "Bitbucket Data center" License.Looking for an option to automate the repository update from remote Bitbucket server.

1 answer

0 votes
Lonnie
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 4, 2018

Hello Kiran, The only way to mirror within a non-DataCenter environment is to use use a plugin. You can take a look at this one Repository Mirror Plugin for Bitbucket 

 

You can also review the following blog for more information and an example too:

https://stiltsoft.com/blog/2015/09/how-to-mirror-to-remote-repositories-from-stash-2/

 

 

I hope this Helps =)

Iranna Jadimath
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 8, 2018

Hello Lonnie ,

Appreciate your effort and time in respond my query.. This sounds great. If my understanding is correct, we have to push the repository from  remote source server to local server along with new commit.

If so , is there any way we can pull from remote source server to Local server.

Thanks in Advance.

Lonnie
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 9, 2018

Hello, In your case where you are using a plugin you would want to:

Pull or Clone from the mirror, push to Bitbucket

So when you clone a repo it will set all the URLs to that. Meaning all pushes, pulls and fetches will be from that cloning URL.

We can update the Push URL to another remote repo:

Example:

git remote set-url --push origin ssh://git@bitbucket.example.com:7999/PROJ/repo.git

 

I hope this helps 

Lonnie

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events