All the data in an Enonic XP installation is stored in $XP_HOME/repo. This directory has two folders: blob and index. The blob
folder contains all files needed by the system to manage your data, while the index folder contains the Elasticsearch index folders. These
are dependent on each other in the sense that one is not much use without the other.

Caution

Technical details: When fetching data in Enonic XP, the index is scanned and a set of “blob-keys” are returned. These blob-keys
refer to files in the blob folder where the actual contents are fetched. Each file in the blob folder is a binary blob or a serialized
“node”, which is the low level structure of your data.

That leaves us with ensuring that two elements are safely stored for retrieval in an emergency:

Backing up the indices is a bit more complex than just copying the index-folder since it involves floating data with state, especially in a
clustered environment. We have a number of rest-resources available at your disposal for snapshot operations:

A snapshot of the given repository will be created for later retrieval. Each subsequent snapshot will store the changes between this snapshot
and the last snapshot of the given repository. This means that only changed data are stored when doing subsequent snapshots. The snapshots
will be stored in $XP_HOME/snapshots. A name of the snapshot will be given at snapshot-time, and returned in the snapshot-result.