Calling `bbs2gh migrate-repo` with `--bbs-server-url` but without `--bbs-project` and/or `--bbs-repo` can start an export of multiple repos
See original GitHub issueDescription
Calling gh bbs2gh migrate-repo with a --bbs-server-url but without a --bbs-project and/or --bbs-repo causes an export to start on the Bitbucket Server including multiple repos.
- If you specify neither
bbs-projectnorbbs-repo, an archive will be gneerated including all repos on the server. - If you specify a
bbs-projectbut not abbs-repo, all repos inside the specific project will be exported.
This isn’t very helpful - GEI only supports importing a single repo, and creating such a large export can be dangerous for a Bitbucket Server instance, consuming resources until the disk becomes full.
We should validate that a --bbs-project and --bbs-repo is always provided.
Reproduction Steps
gh bbs2gh migrate-repo --bbs-server-url https://timrogers-bitbucket.expert-services.io --ssh-user
timrogers --ssh-private-key ~/.ssh/bbs --verbose
gh bbs2gh migrate-repo --bbs-server-url https://timrogers-bitbucket.expert-services.io --ssh-user timrogers --ssh-private-key ~/.ssh/bbs --verbose --bbs-project OS
Issue Analytics
- State:
- Created 6 months ago
- Comments:5
Top Results From Across the Web
Migrating repositories from Bitbucket Server to ...
You can migrate repositories from Bitbucket Server to GitHub Enterprise Cloud using the GitHub CLI. Note: Migrations from Bitbucket Server using GitHub ...
Read more >Migrate Bitbucket Server and Data Center repos to ...
You can now easily use GitHub Enterprise Importer to migrate your source code, revision history, pull requests, reviews and comments when moving ...
Read more >GEI - Migrate Repo. Part 3 - Dave Lloyd
This is #3 in a series of articles explaining how to use the GitHub Enterprise Importer (gei) tools to migrate repos from Azure...
Read more >Migrating projects using file exports
In Import project from, select GitLab export. Enter your project name and URL. Then select the file you exported previously. Select Import project...
Read more >Import and migrate projects | GitLab
Using file exports. With this method you can migrate projects one by one. No network connection between instances is required. If you only...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

No need to drop everything, but this can be the next thing on the BBS backlog ❤️
I do think we should raise an error.
Allowing people to export everything doesn’t make sense because we only support single repos on the import side (as far as I know anyway!).
Even if we did want to support this flow, I don’t think it should be the default as it can be quite dangerous for the BBS instance if you export everything!
What do you think?