The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

repository trasfer

Francesco Viscomi
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 19, 2019

Hi all, i 'm quite new with bitBucket, but i have to move a repository from one location to another. The old repository is hosted on bitbucket 4.14, and the new one should be on bitbucket 5.16.

I follow the following wizard, in the web console, click on "import" after i choose GIT and

insert:

1. Clone URL

2.Username

3.Password

and click on "Import repository" after some time i get the message: "Import failed, the repository was not imported"

 

Can i have some tips on how i can handle it?

thanks

 

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

1 vote
Answer accepted
Mikael Sandberg
Community Champion
September 19, 2019

Hi @Francesco Viscomi,

Welcome to the Atlassian Community.

If you are only moving one repository you can use this command to create a clone from your old server:

git clone --mirror <url repo>

Then go onto your new Bitbucket Server and setup a new repository. Once that is done, add the URL to your clone:

git remote add new_origin <url to NEW repo> 

Now push everything to your new Bitbucket Server:

git push new_origin --all
git push --tags 

Note that you can name new_origin something else if you want to, it is just a short name for the URL to the new server.

Also note that this will not move any of repository settings, pull requests etc that you have on your old server. In order to do that follow this guideline, Migrating Bitbucket Server to another server

Francesco Viscomi
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 19, 2019

thanks

TAGS
AUG Leaders

Atlassian Community Events