Bitbucket automatic backup solutions

Pierre Nilsson April 23, 2015

I wonder if anyone have built or know of a readily available automatic backup solutions for bitbucket? As I understand it bitbucket current backups are only for disaster recovery?

5 answers

1 vote
gustavo_refosco
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 24, 2015

Hi Pierre,

As mentioned by the document you linked, Bitbucket itself doesn't offer a way to restore a repository deleted by a user. I did however some research and found some links that may be useful. As pointed by Seth, every clone of the repo is indeed a backup (maybe not always up to date), so you should be able to restore a repository by having your own backup of it.

In the following links there is some discussion on this, as well as some scripts presented to have this done, in case you want to automatize the process:

Regards,

Gustavo Refosco

0 votes
Helge July 15, 2019

You could use this new tool bbbackup which is Open Source.

Bitbucket automatic backup solution providing Cloud-to-Local and Cloud-to-Cloud repository cloning written in Python

https://github.com/OpenReplyDE/bbbackup

I am happy for pull requests.

Glenn Billiau (TTL) November 4, 2020

It's doesn't work when using bitbucket with a google account.

0 votes
Seth
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 24, 2015

Technically, every clone of the repository is a backup (Git and Hg), though the owner of the clone is responsible for running Fetches to keep it up-to-date. Maybe someone else knows of something more automatic, though.

Adaptivecss September 28, 2018

So I have 3 users and one master file also a download site/upload I have cloned and since fetched from source tree daily. How to verify I am getting all my files? I am not a developer I am an owner. total newbie. I need a piece of mind my source code is complete and out of harm's way, Please advise?

 

Peter!!

0 votes
Pierre Nilsson April 24, 2015

For example: if you accidently deleted your repository.

0 votes
Seth
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 24, 2015

What kind of situation are you wanting the backups to protect you from?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events