Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,294,708
Community Members
 
Community Events
165
Community Groups

List all non personal bitbucket repositories

Hi all,

I am migrating bitbucket server to the cloud/SaaS and will only want to migrate the non personal / user repos.   

How would I get that listing?

Thanks in Advance!

1 answer

0 votes

Hi Robert,

How are you planning to do the migration? Are you going to use the Bitbucket Cloud Migration Assistant, or are you going to write a script for the migration?

The recommended way to migrate is by using the Bitbucket Cloud Migration Assistant plugin, as this way you can also migrate projects, pull requests, and users. Please note that this is available for Bitbucket server 7.0.0 and newer versions.

The plugin can only migrate non-personal repos, so you don't need to filter out any personal repos during the migration process.

You can also check the following documentation for more details:

If you still want to get that list it should be possible via our API. You can use the following endpoint to get all projects in the instance:

When you have a list of projects, you can iterate them with the Project repository API to get a list of each repository in the projects:

Personal repos do not belong to standard Bitbucket projects. They are organized under internal projects where the project key is a tilde char (~) followed by the username (e.g. ~user1), so you can exclude these from your calls.

Please note that the documentation links I shared are for the API of Bitbucket Server 7.17.0. These APIs can be different from version to version, so if you need the documentation for a specific version, please let me know what version you are using and I can find and share the relevant links.

Kind regards,
Theodora

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS
Community showcase
Published in Bitbucket

Git push size limits are coming to Bitbucket Cloud starting April 4th, 2022

Beginning on April 4th, we will be implementing push limits. This means that your push cannot be completed if it is over 3.5 GB. If you do attempt to complete a push that is over 3.5 GB, it will fail...

2,159 views 2 9
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you