Restoring snapshots

Restoring a snapshot is very easy. A snapshot can be restored to other clusters to provide the cluster in which you are restoring it its compatible version.

Note

You cannot restore a snapshot to a lower version of Elasticsearch.

While restoring snapshots, if the index does not already exist, a new index will be created with same index name and all the mappings for that index that were there before creating the snapshot. If the index already exists, then it must be in the closed state and must have the same number of shards as the index snapshot. The restore operation automatically opens the indexes after successful completion.

Example - restoring a snapshot

To take an example of restoring a snapshot from a repository es-backup

Get Mastering Elasticsearch 5.x - Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.