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?
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
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?
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.