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 https://confluence.atlassian.com/bitbucketserver/data-recovery-and-backups-776640050.html - this documents explains how the backup process works and also presents you with two approaches you can choose to perform it.

Regards,

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
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Piotr Plewa
Published Dec 27, 2017 in Bitbucket

Recipe: Deploying AWS Lambda functions with Bitbucket Pipelines

Bitbucket Pipelines helps me manage and automate a number of serverless deployments to AWS Lambda and this is how I do it. I'm building Node.js Lambda functions using node-lambda&nbsp...

2,031 views 1 5
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