Steevo Wiki

You are here: Home » elasticsearch

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
elasticsearch [2022/06/05 10:49]
admin created
elasticsearch [2024/01/26 17:33] (current)
Line 10: Line 10:
 </code> </code>
  
-====== Snapshots ======+==== Show allocation errors ==== 
 +<code> 
 +curl localhost:9200/_cluster/allocation/explain?pretty 
 +</code>
  
  
-==== List snapshots repositories ==== 
  
 +====== Snapshots ======
 +
 +===== List snapshots repositories =====
  
 <code> <code>
Line 20: Line 25:
 </code> </code>
  
-List all snapshots in a repository+===== List all snapshots in a repository ===== 
  
 <code> <code>
Line 26: Line 32:
 </code> </code>
  
-Restore a snapshot+===== Create new snapshot =====
  
 +<code>
 +curl -XPUT [hostname]/_snapshot/[repository]/[snapshot_name]
 +</code>
 +
 +===== Restore a snapshot =====
 +
 +
 +
 +<code>
 +curl -k -XPOST ' [hostname]/_snapshot/[repository]/[snapshot_name]/_restore' -d '{
 +"indices": "*",
 +"ignore_unavailable": true,
 +"rename_pattern": ".kibana",
 +"rename_replacement": "restored_.kibana"
 +}' -H 'Content-Type: application/json'
 +</code>