Forums

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

Plugins for migration from other repos to Bitbucket

Swaminathan N September 16, 2018

I am currently working on a migration project into Bitbucket local/server and need suggestions to make it simple.

1.)How do we migrate from SVN to Bitbucket local? Is there any best practices for doing the same? Also is there any plug-ins or utilities to carry out this?

2.)How do we migrate from CVS to Bitbucket local? What is the best practice for doing this? Also suggest me plug-ins or utilities if there is any to make this in a simple manner.

Please help me in achieving this. Thanks in advance.

1 answer

1 accepted

0 votes
Answer accepted
Steve Thornhill
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 17, 2018

To migrate from either you will need to convert the repositories into a format git can read. 

There are lots of examples around on how to do this, but using SVN as an example, you will need to convert the users into a slightly different format, then use a tools such as git-svn to convert the repository. This can then be pushed into bitbucket.

That is a very brief overview of how to do it, try starting here for a more detailed explaination

https://www.atlassian.com/git/tutorials/migrating-convert

Swaminathan N September 17, 2018

Thanks Steve. That was very helpful. Can you please help me to migrate from CVS to BB? SVN to BB has been achieved through this. Please help me in CVS to BB migration.

Steve Thornhill
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 17, 2018

That's one of those questions that is hard to answer without knowing fully what is being migrated.

But there are similar tools for performing the migrations around, plus documented steps of how people have performed this.

Swaminathan N September 18, 2018

Steve, please guide us on doing the similar kind of approach you suggested for SVN to BB. Please suggest some best practices and approaches to carry out migration from CVS to BB and pardon me, I cannot disclose what is migrated since it is confidential.

Steve Thornhill
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 18, 2018

There is an overview of the standard function here - https://git-scm.com/docs/gitcvs-migration

This will get you a copy of the CVS repo in a format git can use. Depending on how the CVS is set up you may need to merge the repositories.

And don't worry, I wasn't asking for details, just trying to explain that normally we would review the overall setup of your current system before creating a migration plan.

Like Erin Isaachsen likes this
Swaminathan N September 18, 2018

Thanks for the info, Steve. We will try on the provided link and will get back in case of any other queries.

Swaminathan N September 18, 2018

If the CVS contains code+binary, I want to migrate the code alone into BB. I was implying to ask this actually. Please guide me with some best practices if available.

Steve Thornhill
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 18, 2018

The migration will include anything that was in the CVS repository.

If you don't require the binaries to be added to the git repository when you push into BitBucket, you can either add them to the .gitignore file or remove them from the git directories.

Suggest an answer

Log in or Sign up to answer