How to transfer every repository from one workspace to another.

bbalint January 27, 2023

Hi everyone, 

We have several small teams. These teams currently work in separate Bitbucket workspaces.  We've grown, so we decided that we want to merge all of our workspaces into one huge workspace, so every project and repository would be in one place.

We couldn't find the solution to move or copy every project and/or repository from one bitbucket workspace to another (apart from doing it one-by-one).
For example GitLab has this function, we would be able to copy all of our repositories from Bitbucket to GitLab with only a few clicks.

I'm talking about more than 500 repositories in 3-4 workspaces, surely there must be a solution for this other than doing it one repository after another. We would like to stay in the Atlassian cloud, but moving all of our repositories to one place conveniently is also important.

I would really appreciate if you could point us in the right direction, or show us a solution for this issue.

 

Thank you

1 answer

0 votes
Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
January 30, 2023

Hi @bbalint,

Bitbucket Cloud doesn't have an option for bulk transferring repositories at the moment.

We have a feature request in our issue tracker that you can vote for to express your interest:

One of the members of the Bitbucket Cloud support team has developed a script for initiating a transfer request for all repositories in a given workspace to a new workspace. You can see more details in the following comment on the feature request, if you would like to make use of it:

Kind regards,
Theodora

bbalint January 31, 2023

Hi Theodora,

Thank you for your answer.

That script is nice, but doesn't really solve the whole problem. The projects still need to be created, and of course still have to go through hundreds of emails (one for each repo) and finishing the transfer request manually.

Nice to know, there is already a feature request about it, hopefully one day it will be implemented.

In the meantime, I guess we have to take a look at the Bitbucket API and find a solution that fits our needs.

Best regards,
Balint

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

Hi Balint,

Thank you for the feedback, and yes, it's true that this doesn't solve the project creation or the acceptance of the transfer requests.

We have API endpoints for projects that you can look into if you want to automate the project creation:

Kind regards,
Theodora

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Site Admin
TAGS
AUG Leaders

Atlassian Community Events