How to import the bitbucket server repository to new bitbucket server

Dear Support, I use Bitbucket server for more than year. Because of IT problems on the computer which hosts the Bitbucket server I forced to reinstall the operation server on it. Now I reinstalled the bitbacket server and want to import the previously used repositories in it (I found them in the old server Atlassian\ApplicationData\Bitbucket\shared\data\repositories location).

How I can do it?

Regards, Slava

2 answers

1 accepted

This widget could not be displayed.

Hi Yossi! If you have the repositories locally available, then you'll be able to upload them to the new Bitbucket Server as normal. Keep in mind that the history from the repositories will not be transferred, as it looks like you don't have a proper back up of the old Bitbucket Server. The instructions can be found at Importing code from an existing project.

If you do have a backup, then the steps to follow are different and they can be found at Migrating Bitbucket Server to another Server.

Hope that helps!

Ana

Many thanks Anna, I simply created the new repositories on the server with the same names as was on the old server and copy the old repositories data to the corresponded repositories folders (like C:\Atlassian\ApplicationData\Bitbucket\shared\data\repositories\12).

After rebooting the server all worked perfect and I can see the old repositories data and history!

This widget could not be displayed.

Many thanks Anna, I simply created the new repositories on the server with the same names as was on the old server and copy the old repositories data to the corresponded repositories folders (like C:\Atlassian\ApplicationData\Bitbucket\shared\data\repositories\12).

After rebooting the Atlassian server all worked perfect and I can see the old repositories data and history!

That's great, Yossi! Glad to hear it worked for you :) 

Have a nice evening,

Ana 

Thanks, the same for you

Slava I'm New Here Mar 04, 2018

Dear Anna, after migration the server worked ok. But suddenly we detected the following problem: we don't have administrative permissions on the server and can't enter to administrate bitbucket page to add the new users.  How we can reopen the administrator capabilities on the server?

Regards, Slava 

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted Aug 10, 2018 in Bitbucket

What is your #1 piece of advice to new users getting started using Bitbucket?

Hello Community! My name is Claire Maynard, and I’m a Product Marketing Manager on the Bitbucket team. I’m interested in hearing what advice or tips you have for new users getting started on ...

275 views 15 2
Join discussion

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you