Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

How we back up zero downtime for repos in Windows OS.

Ruby March 26, 2023

Hi was trying to back up repos from Bitbucket cloud. To back it up, we need to install Bitbucket server? I couldn't find the installer for bitbucket server on Windows OS (https://www.atlassian.com/software/bitbucket/download-archives) .

Community back up discussion was last 5 years ago (https://community.atlassian.com/t5/Bitbucket-questions/Best-way-to-back-up-all-BitBucket-repositories/qaq-p/833630). Couldn't find the latest discussion?

Found bitbucket up from https://gitprotect.io/ but it's a paid version. Can we backup the repos without using the third party app?

2 answers

1 accepted

0 votes
Answer accepted
Patrik S
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
March 30, 2023

Hello @Ruby ,

Thank you for reaching out to Atlassian Community!

You don't need to install Bitbucket Server in order to backup your repositories from Bitbucket Cloud. Actually, the Bitbucket Server and Cloud are two different products with regard to where they are hosted.

Bitbucket Server is a self-hosted version of bitbucket that is setup and operates in the user's company infrastructure/servers, while Bitbucket Cloud is a cloud-based product meaning that it is hosted and operated by Atlassian itself, so you don't have to worry about managing the infrastructure behind it. 

As for doing a backup of your Bitbucket Cloud repositories, given the fact that git is a distributed version control system, this means that a clone of a repository can be considered as a backup of it. So in this case, I would suggest doing a mirror clone of the repositories you want a backup, using the following command : 

git clone --mirror <repository URL>

You could build a script that gets the list of all repositories within a workspace from Bitbucket Cloud API (see List repositories in a workspace), and then iterate over those repos executing a git mirror clone of each of them.

Hope that helps! Let me know in case you have any questions.

Thank you, @Ruby !

Patrik S

Ruby March 30, 2023

Thank you @Patrik S . It relieves me a lot instead of going to the wrong direction. 

0 votes
Ruby March 26, 2023

Found "bitbucket backup client" to used but the marketplace at atlassian said it will no longer support in future. (https://marketplace.atlassian.com/apps/1211500/bitbucket-server-backup-client?tab=overview&hosting=server) What should we use if so?

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Site Admin
TAGS
AUG Leaders

Atlassian Community Events