Managing repositories
Elasticsearch provides a built-in system that rapidly backs up and restores your data. When working with live data, keeping a backup is complex. This is due to a large number of concurrency problems (such as record writing during the backup phases).
An Elasticsearch snapshot allows you to create snapshots of individual indices (or aliases), or an entire cluster, in a remote repository.
Before starting to execute a snapshot, a repository must be created – this is where your backups or snapshots will be stored.
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.
In order 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...