By default, this folder structure exists inside the XP_INSTALL. It is commonly moved out or treated specially from the rest of the files and folders in XP_INSTALL, as it contains stateful data. An example of this is when using Enonic CLI. Each "sandbox" created is basically a copy of the XP_HOME structure.
You may override the default location of XP_HOME by passing a boot parameter to XP, or by creating an XP_HOME environment variable.
Folders marked with * will not appear until XP is started the first time
config/ holds all configuration files, including vhost.cfg and system.properties. XP supports hot reloading of all files ending with .cfg
2
data/ Contains system dumps and exports.
Should be mounted to a dedicated volume as usage may grow quickly, and exceed the size of the live repo data. Clusters should use a shared volume.
3
deploy/ Apps placed here are automatically loaded and started on the specific node.
4
logs/ default output location for all logs.
5
repo/index/ contains repository metadata and indexes
Requires a local persisted volume (Preferably using SSD). Must never be mapped to a shared volume. The content is automatically replicated across nodes in the cluster.
6
repo/blob/ contains the XP blobstore
Requires a persisted volume. For clusters, this must be a shared volume, accessible by all nodes.
7
snapshots/ Location where snapshots (of index and metadata) are stored when using the snapshot-operation.
For clusters, this must be mounted to a shared volume, accessible by all nodes.
8
work/ Cache and generated bundles (apps etc) are stored here. It is also a default location for temporary files (from version ).
For optimal performance ,mount this to a local persisted volume. Caches do not need to be re-generated after each restart.
By default, Enonic XP uses XP_HOME/work as temporary folder. You may override this by setting the XP_TMP environment variable to point to a different location.