bitbucket home directory change while upgrading

I need to move the home _directory of Bitbucket. We are using stash 3.11.2 now and upgrade to Bitbucket 4.5 .. but while upgrading we need to move our Bitbucket home_directory. Can we use a symbolic link at the existing location to point to new location or is there a better alternative ? We don't want to lose anything or mess up the configuration while doing so. Please let me know your suggestions 
thank you for your help in advance

2 answers

1 accepted

We don't move our HOME directory but we use symbolic links for the ROOT directory so that switching versions (like upgrading/downgrading) is just a matter of updating the symbolic links. So I guess it should work. Try it in your test environment.

WE have no test environment. What we are planning to do is take  backup to a new location s and delete the existing home_directory, then install the upgraded version of bitbucket and use the symbolic link to the new location we stored our home_directory earlier as a back up. Will that work ?? 

We changed the home directory for atlbitbucket from it's default location to /home/stash using usermod.  This seems to be working fine on our test environment.

We are using stash 3.11.2 and need to upgrade to 4.4/4.5 .. So in that process we need to change the home directory location? And can you please detail how you did it using usermod? Thanks

Suggest an answer

Log in or Join to answer
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...

661 views 0 4
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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot