I need to restore the last one on an ES 5.2 instance.
I've read some issues related with index-N I don't quite figure out what's it for.
By now, I'm now able to restore the last snapshot. When I list the available snapshot into repository only shows me one (I don't know whether it's the last or the first one).
How could I restore the last snapshot created by a ES 2.4 instance into an ES 5.2 instance?
Once you connect a 5.x cluster to the same repo that a 2.x cluster is connected to, the 5.x cluster goes through an upgrade process on the file formats. Any subsequent snapshots created by the 2.x cluster will not be seen by the 5.x cluster.
If you really want to restore the latest snapshot from the 2.x cluster, you will have to:
Delete the 5.x repository
Delete all of the index-N blobs (but not the index blob) from the repository
Delete the index.latest blob
Set the 2.x cluster's repo to read_only mode
Create the repo on 5.x.
Restore the snapshot you want
An untested, unsupported alternative if you want to keep writing snapshots from the 2.x cluster is to do the aforementioned process but create the repo on 5.x with read_only set to true. However, its not supported and I'm not sure if it'll work - YMMV
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.