Hi Storm,
Unfortunately, with a corrupted database, your only option here is to copy all the repositories from the Bitbucket Home Directory manually, and then start a fresh new Bitbucket instance with a new database and push everything to the new instance.
Here are the steps you can perform to proceed on in this case:
Also, a little hint:
All the Bitbucket repositories are stored in $BITBUCKET_HOME/shared/data/repositories. On the first step, you will see each repository in here will be in a folder named as the repository's database ID. You may find a repository-config file inside each folder, which amongst other things will help you identify the repository by project and repository name. This file should help you to identify which folder belongs to which repo and project, so you can recreate the projects and repos on the new instance based on their names.
Just note that in this case, all the metadata, such as comments, pull requests, permissions and settings will be lost unfortunately due to these are stored in the database.
Hope this helps!
- Vivian
what is the push command to perform this from within the old repository directory?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.