Backup 2.4.3.2 to restore 5.1.26

I have some query, please help me to understand.

what i did:

  1. I have Dev cluster running 2.4.2.3 and I took a backup.
  2. I have another QA cluster running 2.4.2.3.
  3. QA cluster has only four indices with few documents.
  4. Now I upgarded QA cluster to 5.1.2.6.
    Now when I tried to restore backup taken from CI, it is not restoring and not throwing any error, please suggest me what is the mistake.

but same backup when I tried to restore my test cluster running 2.4.2.3 worked fine,

I have no idea of what are those version numbers.

Can you describe the exact steps/commands you did?
What are the logs of the QA Cluster from the moment it starts?

I have Dev cluster running 2.4.X and I took a backup.
curl -XPUT 'https://ci-search-es.int.thomsonreuters.com/_snapshot/ES_backups' -d '{
"type": "fs",
"settings": {
"location": "/tools/novusRelease/ES_backups",
"compress": true
}
}'

curl -XPOST 'https://ci-search-es.int.thomsonreuters.com/_snapshot/ES_backups/_verify'

curl -XPUT "https://ci-search-es.int.thomsonreuters.com/_snapshot/ES_backups/snapshot_2?wait_for_completion=true"

I have another QA cluster running 2.4.X
QA cluster has only four indices with few documents.
Now I upgarded QA cluster to 5.1.X
Now when I tried to restore backup taken from CI, it is not restoring and not throwing any error, please suggest me what is the mistake.

Question is, can we restore 2.4.X backup snapshot from dev cluster to a demo cluster which is migrated from 2.4.x to 5.1.x?

CI is still have 2.4.x, only another demo cluster I want to upgarde to 5.1.x and restore CI backup to it after upgradation?

Please format your code using </> icon as explained in this guide. It will make your post more readable.

Or use markdown style like:

```
CODE
```

I have Dev cluster running 2.4.X

Yeah but you said: 2.4.3.2 which does not exist. Hence I'm asking.

Now when I tried to restore backup taken from CI, it is not restoring and not throwing any error, please suggest me what is the mistake.

Yes. I asked you to describe all the steps you did. Could you do that please?

Question is, can we restore 2.4.X backup snapshot from dev cluster to a demo cluster which is migrated from 2.4.x to 5.1.x?

It depends if the indices are compatible or not.
Which you can find out I believe by using the migration plugin: GitHub - elastic/elasticsearch-migration: This plugin will help you to check whether you can upgrade directly to the next major version of Elasticsearch, or whether you need to make changes to your data and cluster before doing so.

Sometimes it's easier to reindex the data. Specifically that we have from 5.x the reindex from remote feature. Note that it also works in 6.0 in case you'd like to be up to date.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.