[Other doc versions]
[Doc downloads]
The Stash home directory is where your Stash data is stored. The home directory location is defined either by the STASH_HOME
environment variable, or in the STASH_HOME
line of:
<Stash installation directory
>/bin/setenv.bat
, on Windows<Stash installation directory
>/bin/setenv.sh
, on Linux and Mac. You should not locate your Stash home directory inside the
— they should be entirely separate locations. If you do put the home directory in the <Stash installation directory>
it will be overwritten, and lost, when Stash gets upgraded. And by the way, you'll need separate Stash home directories if you want to run multiple instances of Stash.<Stash installation directory>
Your Stash home directory contains the following directories and files:
パス | 説明 |
---|---|
caches | Cache files. It should be safe for these files to be deleted between application restarts, however, these files must not be modified or removed externally during the application runtime. |
config | Contains application configuration. |
data | Contains all repository data and the embedded HSQL database if an external database is not configured. |
export | Contains database dump files produced during migrations between databases. |
log | Contains logging files for Stash. |
plugins | Contains plugin related data (such as externally uploaded plugins) for Stash. |
tmp | Temporary directory for run-time related operations. Can be safely deleted when the Stash is not running. |
stash-config.properties | File which contains configuration properties for Stash. |
The internal database files, the migration dump files and the stash-config.properties
files all contain information that may be considered secret (server settings, salted and hashed user passwords, database passwords, etc).
For production use, we strongly recommend that you secure this directory against unauthorised access.
We recommend the following precautions: