ElasticSearch Restoration - How to overwrite existing datas

Hi,

Process a backup using curl -XPUT "http://localhost:9200/_snapshot/s3_repository/snap1?wait_for_completion=true" command.

When I try to restore this backup, I'm encountering following issue:

{"error":{"root_cause":[{"type":"snapshot_restore_exception","reason":"[2018-12-23:2018-12-24-060001/_Sb9Wh50SWOeT-3WDWPELg] cannot restore index [.monitoring-es-6-2018.12.19] because an open index with same name already exists in the cluster. Either close or delete the existing index or restore the index under a different name by providing a rename pattern and replacement name"}],"type":"snapshot_restore_exception","reason":"[2018-12-23:2018-12-24-060001/_Sb9Wh50SWOeT-3WDWPELg] cannot restore index [.monitoring-es-6-2018.12.19] because an open index with same name already exists in the cluster. Either close or delete the existing index or restore the index under a different name by providing a rename pattern and replacement name"},"status":500}

Is there a way to overwrite existing index?

Thanks.

The answer to your question is in the error message that you posted:

For the information on how to close the index, see documentation.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.