Restoring a snapshot
Once you have snapshots of your data, it can be restored. The restoration process is very fast – the indexed shard data is simply copied onto the nodes and activated.
Getting ready
You will need an up-and-running Elasticsearch installation—similar to the one that we described in the Downloading and installing Elasticsearch recipe of Chapter 1, Getting Started.
To execute the commands, any HTTP client can be used, such as Curl (https://curl.haxx.se/) or Postman (https://www.getpostman.com/). Additionally, you can use the Kibana console as it provides code completion and better character escaping for Elasticsearch.
To correctly execute the following commands, the backup that was created in the Executing a snapshot recipe is required.
How to do it...
To restore a snapshot, we will perform the following steps:
- To restore a snapshot called
snap_1
for themybooks-*
indices, the HTTP method that we use isPOST
. The command is as...