HOW to restore a snapshot from another location


(mostafa) #1

Hello ,
I try to restore a snapshot located on another local reader (B:)
The Elasticsearch directory is located on C:

here the snapshot content located on B:\
image

what spets should I follow to restore this snapshot ?
once done , is it possible to remove the snapshot or ES stills need it ?

thanks


(David Turner) #2

Assuming you have a single node, you can register this directory as a read-only repository with Elasticsearch: https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-snapshots.html#_repositories

Then restore this snapshot: https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-snapshots.html#_restore

If you have multiple nodes then you need to set up a shared filesystem or a read-only URL repository.

Once the restore has succeeded, Elasticsearch does not need the repository any more. You can deregister the repository with DELETE /_snapshot/{repository}.