D
D
Drum Kit2016-04-14 15:14:34
elasticsearch
Drum Kit, 2016-04-14 15:14:34

How to organize a backup in Elasticsearch?

Off. The documentation says that you need to create a repository for the snapshot, etc.
But when I want to create a repository I get this response from the elasticsaerch server.

curl -XPUT ' 192.168.100.150:9200/_snapshot/elastic_demo_backup ' -d '{"type": "fs", "settings": {"location": "/home/elastic_backup/", "compress": true } } '
{"error":"RepositoryException[[elastic_demo_backup] failed to create repository]; nested: CreationException[Guice creation errors:\n\n1) Error injecting constructor, org.elasticsearch.repositories.RepositoryException: [elastic_demo_backup] location [/home/ elastic_backup/] doesn't match any of the locations specified by path.repo because this setting is empty\n at org.elasticsearch.repositories.fs.FsRepository.(Unknown Source)\n while locating org.elasticsearch.repositories.fs. FsRepository\n while locating org.elasticsearch.repositories.Repository\n\n1 error]; nested: RepositoryException[[elastic_demo_backup] location [/home/elastic_backup/] doesn't match any of the locations specified by path.repo because this setting is empty]; ","status":500}[[email protected] home]#

How to make backup index?
Thank you.

Answer the question

In order to leave comments, you need to log in

[[+comments_count]] answer(s)
M
MintTea, 2016-04-18
@MintTea

Add to elasticsearch.yml:
And yes, it is written in the text of the thrown exception:

...RepositoryException: location [/home/elastic_backup/] doesn't match any of the locations specified by path.repo because this setting is empty...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question