How can retrieve bitbucket repositories when db is demolished?

43 Views Asked by At

My bitbucket server db is demolished, so I have no bitbucket data. how Can I retrieve repositories?

Bitbucket is running but it can't connect db.

1

There are 1 best solutions below

0
On

If you log on to the bitbucket server, and locate the directory where Bit Bucket installed its data files. It's usually:

/var/atlassian/application-data/bitbucket/shared/data

You can find where the data files are in:

cd /opt/atlassian/[version]/bin/
grep BITBUCKET_HOME= *

Then there should be a folder called 'repositories'. Each of the numbered folders in there is a git repository.