Forums

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

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

Ithead Findoc June 29, 2020

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

0 votes
Rudy Holtkamp
Community Champion
June 29, 2020

Hi @Ithead Findoc ,

Is the new Bitbucket instance starting at all? 

Ithead Findoc July 1, 2020

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

Rudy Holtkamp
Community Champion
July 1, 2020

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

0 votes
Yogesh Mude
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.
June 29, 2020

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

Ithead Findoc July 1, 2020

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

Yogesh Mude
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.
July 1, 2020

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.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
TAGS
AUG Leaders

Atlassian Community Events