Forums

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

restore from home directory

Asaf Peretz May 7, 2019

Hi,

my sql file was deleted, i would like to install new instance and take the data from the disk

(home directory) 

Is this possible ?

 

Thanks,

1 answer

0 votes
Nic Brough -Adaptavist-
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.
May 7, 2019

What sql file?  What exactly have you lost and what are you trying to get back?

Asaf Peretz May 7, 2019

the sql backup / mdf file got corrupted 

the only thing that i have is the data directory

Asaf Peretz May 7, 2019

my data directory C:\Atlassian\ApplicationData\Bitbucket with all files if fine

the sql database that was located on different server cannot be recovered.

so i would like to install a new instance and use my data directory

Thanks for your help

Nic Brough -Adaptavist-
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.
May 7, 2019

Ah, ok, you've lost your database.  There's no point in recovering most of your data directory, the database is where all the bitbucket data was.

Your git repositories are ok though, they live in the data directory, so you'll need to install a new bitbucket, point it at those old repos and reconfigure everything you lost when the database vanished.

Asaf Peretz May 7, 2019

I installed a new version and it is pointing to the previous data shared directory(where alll source is located) 

What now ?

How do i reconfigure ?

Thanks ,

Nic Brough -Adaptavist-
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.
May 8, 2019

You'll need to go into Bitbucket, tell it where the repositories you've got are, and add back all the users and projects you had before.

Asaf Peretz May 10, 2019

Can i find a guide for doing that  ?

The new version is installed and the shared directory is set to the directory with

all of my projects. when i go into bitbucket ui i cant see any projects.

 

I tried to add a project with and repository with the same names as before 

but that just creates new projects.

 

Appreciate your help,

Nic Brough -Adaptavist-
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.
May 11, 2019

There's the standard installation guide, yes. 

The reason you don't see anything is that bitbucket has not been told where the projects are - you lost that data when you lost the database.  You will need to re-add them all as new projects.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events