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

0 vote

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!

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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Jun 12, 2018 in Bitbucket

Do you use any Atlassian products for your personal projects?

After spinning my wheels trying to get organized enough to write a book for National Novel Writing Month (NaNoWriMo) I took my affinity for Atlassian products from my work life and decided to tr...

27,890 views 26 12
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