Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How to backup and restore complete bitbucket instance installed on centos 7 ?

We have Bitbucket installed on my own server, with Centos 7 platform.

We have tried taking the backup of the "Atlassian-Bitbucket" from the "/var/atlassian/application-data/bitbucket" to a different location and have installed a new instance of the bitbucket on a new machine and pasted the above directory along with the PostGres SQL dump to the new machine. But still unable to restore the entire repositories, users, projects etc.

 

* Please provide assistance on the same, as in how to backup and restore properly and what all directories need to copied and where to be placed for an instance to be running as it was.

It would be greatly appreciated if you could take up a remote session and help demonstrate this.  

2 answers

HI @Ithead Findoc 

Welcome to the community!

The different locations you meant to say another machine or the same machine?

If there is a different machine then you can follow the steps mentioned on Atlassian Migrating Bitbucket from server to another server

By different location I did not intend to restore it to a different server only. But I did want to restore to another server or the same server.

 

Pls help on that

If Its in the different server then you can follow the documents attached to my earlier comment.

Make sure you should point out your new bitbucket to the old home directory and also restore old bitbucket DB backup to new DB (if you are changing the DB as well).

Then you can restart the new bitbucket server manually.

Hi @Ithead Findoc ,

Is the new Bitbucket instance starting at all? 

The new instance is starting but none of the previous repositories or users or  projects are being shown there.

Did you change the BITBUCKET_HOME variable in <BITBUCKET_INSTALL>/bin/set-bitbucket-home.sh to the new directory?

If not do so and restart BB

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
TAGS
Community showcase
Published in Bitbucket

Powering DevOps with Bitbucket Server & Data Center

Hi everyone, The Cloud team recently announced 12 new DevOps features that help developers ship better code, faster   ! While we’re all excited about the new improvements to Bitbucket ...

1,804 views 0 7
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you