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

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How to create backups of repositories

Hello,

could you please explain how can I create regular backups of my repositories of all projects which are stored on your machines and stored them on my dedicated machine ? 

 

Regards

 

Lukas

 

3 answers

2 accepted

1 vote
Answer accepted

Any full clone of a repository is essentially a full backup.

I need to make backups of more than 30 project every day.

Do you need the bitbucket parts of the projects backed up, or just the repositories?

If it just the repositories, you can create a script to list the repositories and clone each in turn.

1 vote
Answer accepted

Hi Lukas,

 

I would suggest taking a full backup of Bitbucket Server. This will include the repositories and the database and will allow you to perform a full restore, in case of need.

A backup and restore strategy is highly recommended for a production site.

 

All available strategies are documented on the following page:

- Data recovery and backups

 

Does this help?

Thanks, Caterina - Atlassian 

I also see that you raised a similar question here:

How to create backup of the Bitbucket on Azure server ?

 

Is this on the same topic?

Thank you for your answer I will check site and yes is the same issue.

Currently we use Bitbucket servers for storing all projects. So for my server machine where I want to save all repositories every day should I install Bitbucket server and then I will be able to make backups ?

Ok Lukas,

I read your updates on the other thread as well and I now understand that you are trying to create a backup of the repositories hosted on bitbucket.org.

I would suggest creating a script that does the following when needed:

- clone the repositories from bitbucket.org (a clone is a fully usable backup)

- stores the backup in a safe location

- deletes the backup after a predefined amount of time

 

This will require having a server that can trigger the clone operations and a filesystem to store the data. No additional installation of software is required. 

 

I also would like to understand what is the reason for creating these backups and how are you planning to use them. 

You can find more about how Atlassian provides high availability for bitbucket.org on the Does Bitbucket backup my repositories? page. As you can see the repositories are backed up regularly by Atlassian.

 

Thanks, Caterina - Atlassian

Any solution that is working today to backup all repositories from bitbucket.org?

0 votes
Peter DeWitt Community Leader Mar 01, 2018

@Lukas Nosko, Are you talking about backing up Bitbucket Cloud to a local server?

Yes to local server and make it regularly. Have you got some quick steps which I need to follow if I want to achieve these back ups ? We have aproximatelly 30 projects on Bitbucket servers and requirement is to copy all of the projects every day on dedicated machine. I need to install Bitbucket server on this machine or ... ?  

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Posted in Bitbucket

How do you use the Bitbucket-Jira integration? How does it help your team?

Hey everyone, over the past year, we've added several new features on how you can use Bitbucket and Jira together. We'd love to know how you'll are using the integration and how it's helping your t...

77 views 0 2
Join discussion

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you