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?
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.