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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Jun 12, 2018 in Bitbucket

Do you use any Atlassian products for your personal projects?

After spinning my wheels trying to get organized enough to write a book for National Novel Writing Month (NaNoWriMo) I took my affinity for Atlassian products from my work life and decided to tr...

23,888 views 26 12
Join discussion

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