I want to migrate data from Amazon AWS ElasticSearch version 2.3 to 5.1 and have created a data snaphsot in S3, now how do I copy those dump files from S3 to ES 5.1?
Asked
Active
Viewed 536 times
0
-
is it dump or a snapshot? – Mysterion Feb 07 '17 at 09:23
1 Answers
0
You're lucky, according to Elasticsearch documentation:
A snapshot of an index created in 2.x can be restored to 5.x.
Also, Elasticsearch has:
repository-s3 for S3 repository support
,which should be very useful in your case, I assuem.
The full guide how to do that is there. I will try to some of them:
Before any snapshot or restore operation can be performed, a snapshot repository should be registered in Elasticsearch. The repository settings are repository-type specific. See below for details.
PUT /_snapshot/my_backup
{
"type": "fs",
"settings": {
... repository specific settings ...
}
}
After several others steps, like verifying snapshot, you could restore it:
A snapshot can be restored using the following command:
POST /_snapshot/my_backup/snapshot_1/_restore

Mysterion
- 9,050
- 3
- 30
- 52
-
-
-
I want to copy my data from ES 2.3 to ES 5.1 now is this process migration or restoring or do they mean the same thing? – Inherited Geek Feb 07 '17 at 14:00
-