question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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 issue

Description

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-project nor bbs-repo, an archive will be gneerated including all repos on the server.
  • If you specify a bbs-project but not a bbs-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:closed
  • Created 6 months ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
timrogerscommented, Mar 17, 2023

No need to drop everything, but this can be the next thing on the BBS backlog ❤️

1reaction
timrogerscommented, Mar 17, 2023

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?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found