Moving Stash Repositories


I updated stash some time ago; however, now the server is running out of space. I have a SAN Lun attached, formatted, and mounted that I would like to move all of the data over to it. The pathes will change on the server.

Currently: STASH_HOME="/opt/stash"

I want to store the data, at least the heavily used resources, in: /atlassian/as/stash_data

Any tips or tricks to get this moved over? I couldn't find a sure fire guide that would help.


1 answer

1 accepted

Hi Robert,

The definitive guide for migrating Stash is here:

All of Stash's mutable data is stored in the Stash home directory and whichever database you chose on startup. If you're not switching databases, you should be able to simply shut down Stash, move your Stash home directory to the new location (and update STASH_HOME) and then start Stash again.



Hi ! I'm in the same case than Robert, except I'm not out of space, but more on the way to clean my disks usage. I have another question concerning a strange behaviour after following the migration guide. When I installed Stash first (on Windows), two folders were created: C:\Atlassian\Stash (Stash bin and executables) and C:\Atlassian\ApplicationData (Stash data). So here is what I tried to do: - stop Stash (from the Windows services.msc interface) - move the folder containing data to a second local drive in D:\Stash-home (or more precisely copied its content to the new folder and renamed it to keep a safe copy) - then edit the setenv.bat to change the path of STASH_HOME - start again the Stash server always from services.msc => So that Stash restarts correctly, but another C:\Atlassian\ApplicationData is automatically created, and I try to connect on the Stash's web interface, I am asked to set up a new instance of the server. Can you tell me what I'm doing wrong ? Thanks ! Brice

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...

706 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