Restore elasticsearch snapshot to existing index

So I want to migrate Elasticsearch data to new cluster and n my old cluster I create daily snapshot. I restore the snapshot to new cluster once, and the next day when I try to restore again I get an error because the index is existed. Is it by design or are there any way to restore snapshot to existing index by appending data on existing index?

You can only restore on a closed index. So close it before.

1 Like
  1. close then restore
  2. rename the index when restore
  3. delete old index and then restore

and in case1,restore is incremental,can reuse old segment file if they don't change

thanks for the answer!

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