User Tools

Site Tools


wiki:elasticsearch_commands

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
wiki:elasticsearch_commands [2023/01/11 16:37] – [References] add opster.com antisawiki:elasticsearch_commands [2023/01/11 17:03] (current) – [Restore snapshot] add restore single index antisa
Line 65: Line 65:
  
   curl -s -X POST "localhost:9200/_snapshot/es_backup/snapshot-12/_restore"    curl -s -X POST "localhost:9200/_snapshot/es_backup/snapshot-12/_restore" 
 +
 +<WRAP center round tip 60%>
 +To restore single index use
 +<code>
 +curl -s -X POST "localhost:9200/_snapshot/myes_bak/snapshot-2023-01-11/_restore" -H 'Content-Type: application/json' -d'
 +{
 +  "indices": "niceindex"
 +}'
 +</code>
 +</WRAP>
  
 If you get an [[https://github.com/elastic/elasticsearch/issues/78320|error]] that an index exist, like with the system index ''.geoip_databases'', you can restore the system indices from the snapshot as well with If you get an [[https://github.com/elastic/elasticsearch/issues/78320|error]] that an index exist, like with the system index ''.geoip_databases'', you can restore the system indices from the snapshot as well with
wiki/elasticsearch_commands.1673451424.txt.gz · Last modified: 2023/01/11 16:37 by antisa

Except where otherwise noted, content on this wiki is licensed under the following license: CC0 1.0 Universal
CC0 1.0 Universal Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki