Is it possible to setup bitbucket from scratch with the same database

I've already a productive version of Bitbucket running. Due to the fact that we had already setup a Stash instance, we've a little bit messy folder structure. It's nothing to worry about but ugly.

Am I able to setup a Bitbucket Server from scratch with the same data (so, without erasing the database)?

1 answer

Hi Kai,

Could you please provide further information about how your folder structure looks like? I'm not sure I understand how it got messy.

Either way, please allow me to already suggest something that wouldn't affect your existing instance, so you may test a new install. You may generate a full backup from your existing instance then, in a separate test server, install Bitbucket from scratch and restore this backup to it.

You will find information about Bitbucket backup at - this documents explains how the backup process works and also presents you with two approaches you can choose to perform it.


Gustavo Refosco

First of all an earlier version of Bitbucket failed in recognizing the right "Program Files" folder and created another folder called "Programs". So, we have two folder called "Programs", one of them is the real "Program Files" folder and the other is really called "Programs".
Further down in the Atlassian folder we have three folders called "Bitbucket", "Bitbucket_4.0.2" and Stash. The Bitbucket-Home-Directory is stored in a folder called "StashAppData".
Pretty messy smile

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Nov 06, 2018 in Bitbucket

Upgrade Best Practices

Hello! My name is Mark Askew and I am a Premier Support Engineer for products Bitbucket Server/Data Center, Fisheye & Crucible. Today, I want to bring the discussion that Jennifer, Matt, and ...

1,932 views 7 10
Read article

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you