how can I change the Stash repository directory path to a new place

 

1 answer

You need to change the location of STASH_HOME, as described here.

STASH_HOME it's a path, Can I copy all the sub directories in the path to the new location, restart stash and all the projects will work without any problem?

What I want to do is to put all my Git/Stash projects in a NetApp machine so if something goes wrong with the Stash server I'll be able to move to a standby node. Second I'll be able to backup the projects using NetApp tools to a different location for DR.

The page I linked to has all the info there is about this topic. It says "Where possible, you should choose a location for your Stash home directory that will never need to be moved. Some home contents are location-sensitive, so moving the home directory may corrupt them. Stash attempts to update contents when it detects that the home directory has moved, but the safest approach is to avoid the issue altogether by leaving the home directory in the same location." On the other hand, we have done this several times and it has never actually caused a problem.

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,035 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