index snapshot repository
The index snapshot repository command sets the search index snapshot repository shared file system path. You can set any number of repositories. But, the Search Index Engine always uses the currently set file path for backing up and restoring data.
To use the index snapshot repository for search index (in CLI), you need to first specify the repository path, path.repo at the location given below and restart the server. In case of cluster set-up this modification needs to be done at all the nodes. This path is used while creating the repository SpectrumDirectory\index\elasticsearch.template.
For example, the path can be:
- path.repo: ["/mount/backups"]
- path.repo: ["C:/SIbackups"]
Examples of repositories created using the above path are:
- index snapshot repository --p /mount/backups/index_customer
- index snapshot repository --p C:/SIbackups/index_customer
Usage
index snapshot repositoryRequired | Argument | Description |
---|---|---|
Yes | --p Name | Specifies the path where the index snapshot repository is to be set. Note: It is
mandatory to use a shared file system path. |
No | --o Overwrite | Overwrites the already set path with the new one. |
Example
This example sets a new index snapshot repository at the path "c:\\MyIndexRepository".
index snapshot repository --p c:\\MyIndexRepository