Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

How to create backups of repositories


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 ? 






3 answers

2 accepted

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

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

- clone the repositories from (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 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

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.

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
Community showcase
Published in Bitbucket

Git push size limits are coming to Bitbucket Cloud starting April 4th, 2022

Beginning on April 4th, we will be implementing push limits. This means that your push cannot be completed if it is over 3.5 GB. If you do attempt to complete a push that is over 3.5 GB, it will fail...

2,227 views 2 9
Read article

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