Suddenly all branches except develop and master disappeared
Asked by abhi_saini:

Hi, Suddenly all my open branches except develop and master are disappeared from bitbucket.

I have tried to restore a few by pushing the branches that were available on my local. So now they are there. But how to recover all those other branches which were there until Yesterday Morning.

Thanks


Answers:
author: Daria Kulikova
body: Hello [@abhi_saini](/t5/user/viewprofilepage/user-id/2476782) and welcome to the Atlassian Community!

Hope you managed to get your Bitbucket data back.

As an option to have full control over your data in case of an accedental deletion (or any other event of failure), it's worth having a backup solution in place. For example, GitProtect backup and Disaster Recovery software for Bitbucket, Jira Software, JWM, and JSM, permits to restore your data from any point in time fully or granularly to the same or a new account, to your local machine or cross-overly to another platform (GitHub or GitLab).

Moreover, with GitProtect backups you can easily schedule and automate your backup policies, back up your data to multiple storage destinations, ensure data replication between storages, unlimited retention, private AES encryption key, ransomware protection, etc. You can read more about backup best practices and how GitProtect meets them in this article: <https://gitprotect.io/blog/bitbucket-backup-best-practices/>

Learn more about GitProtect backup and DR software on Atlassian Marketplace: [https://marketplace.atlassian.com/apps/1225728/gitprotect-io-backup-for-bitbucket?hosting=cloud\&tab=overview](https://marketplace.atlassian.com/apps/1225728/gitprotect-io-backup-for-bitbucket?hosting=cloud&tab=overview)

If you have any questions regarding Bitbucket backup, you can [schedule a live demo](https://calendly.com/d/3s9-n9z-pgc/gitprotect-live-demo?month=2024-06) anytime.

Kind regards,

Daria


author: Theodora Boudale
body: Hi [@abhi_saini](/t5/user/viewprofilepage/user-id/2476782) and welcome to the community!

We recently started rolling out a change, we are scoping the **Commits** list page to the repository's main branch. I am wondering if this change caused confusion while the branches are still there. Can you please double-check the following:

* On the **Commits** page of the repo, there is a dropdown at the top that shows either a certain branch's name or the text "All branches". If this dropdown shows the name of a branch, can you select the text **Show all** next to it?  

* On the Branches page of the repo, can you select the dropdown with the text **Active branches** and then select **All branches**? Do you see your branches then?

If you still can't see your other branches:

* Check with other users who have access to the repo (if any) and ask them if they have the other branches available in a local clone so that they push them to Bitbucket.  

* If none of the other users have these branches locally, please let me know, and I can create a support ticket for you so that we can check whether it's possible to restore an earlier backup of the repo. Please let me know as soon as possible, as the backups we have available for restoring are from the last seven days only.

Kind regards,  
Theodora

comments: author: abhi_saini
body: Hi,  

Thanks for your answer.  
I have tried clicking on **Commits** and then **Show all** but that is not helpful because I was trying to locate some very old branches and I see only new branches in the list which we have already pushed from local.

On the Branches page, I have also tried changing the dropdown to **All branches,**that also doesn't show me my old branches which were available till last week.

About your suggestion:  
we have already pushed all the latest branches which were available on our local but again it is about those old branches which were on hold due to priorities.

About restoring the backup:  
I need to know who deleted them and when the branches were deleted because I can not see the logs about who deleted them. For restoring the backup, we should do it only if it doesn't remove our new commits and new branches that were added after the backup was created. Otherwise we should not do it.  

Thanks


author: Syahrul
body: Hey [@abhi_saini](/t5/user/viewprofilepage/user-id/2476782)

I have raised a support ticket on behalf of **Theodora** to help you investigate the missing branch. You can find the support ticket in our Support portal at:

<https://support.atlassian.com/requests>

Regardss\<  
Syahrul


Tags: bitbucket-cloud

cloud