POST / restore

From wikieduonline
Jump to navigation Jump to search
POST /_restore
{"accepted":true}
Check: GET /_cat/recovery
curl -X POST --insecure https://elastic:your-pass@localhost:9200/_snapshot/your-snap-repo/your-snapshot/_restore
{"accepted":true}
{"error":{"root_cause":[{"type":"snapshot_restore_exception","reason":"[your-snap-repo:snapshot-2022.07.12/2bu2MmlcSiOtd3tPjhwqrQ] cannot restore index [reputation] 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":"[your-snap-repo:snapshot-2022.07.12/2bu2MmlcSiOtd3tPjhwqrQ] cannot restore index [reputation] 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}
Solution: Close index: /_close

Related[edit]

/_close

See also[edit]

  • https://www.elastic.co/guide/en/elasticsearch/reference/current/cat-templates.html
  • Advertising: