Missed Team ’24? Catch up on announcements here.

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

Backing up bitbucket server

Lokesh Pathak February 16, 2018

We have a bitbucket server that talks to external mysql database (both run on same physical host). Is it feasible to back it up by following procedure in specific order outlined below?

 

1. create mysqldump of the bitbucket db.

2. create a tarball of BITBUCKET_HOME (or the data directory)

 

Any reason why above approach isn't a valid backup approach? Are there any pitfalls of not using the diy scripts for creating the backups?

 

Thanks!

1 answer

0 votes
Caterina Curti
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
February 17, 2018

Hi Lokesh,

The data recovery and backups page describes the various options to create a backup in Bitbucket Server.

There is a backup client or you can also use the DIY scripts starting from the provided samples.

 

The DIY script already contains the logic to perform the operations in a way very similar to the one you are describing.

On top of that, it also puts Bitbucket Server in a locked status preventing any users to perform any changes while the backup is being taken.

This step is required to avoid data corruption or inconsistencies.

 

I would suggest using the provided scripts as a starting point and let us know if they don't cover your use case.

 

Thanks,

Caterina - Atlassian Support 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events