Forums

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

Restoring a deleted repository via server and database backup

Cole Adams May 1, 2018

Basically, a repo got deleted on accident and I am trying to restore it as much as possible. Our server and database are backed up daily, so I was able to add the repo folder back into the repository directory with the same repo id as the folder name. However, it seems that the folder is not connected to the database or web yet. What do I need to do in the database to link that folder back as an active repo to see on the web app? 

 

I'm not sure what in the database is affected when a repo is deleted other than the record from the repository table being deleted. Do I just restore that one record?

1 answer

1 accepted

0 votes
Answer accepted
Caterina Curti
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 2, 2018

Hi @Cole Adams,

 

Did you already review the steps on the Restore a deleted repository for Bitbucket Server article?

 

Since you have a backup, you want to use the Case #1 - recommended option.

 

To answer your question, the best way to proceed is to create a new database via the user interface and restore the git repository from the backup (the detailed steps are on the page)

As a side note, manual modifications to the database are not supported.

 

Cheers,

Caterina - Atlassian Support

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events