How to restore one index from a multi index snapshot

Hi, I have a weekly backup from all of the indexes. I lost one of the indexes and want to restore it but not all of the indexes. I will make the separate index snapshots later. But now I need to restore this index only not all of them. Do you have any idea how I can do that?

I have more than 20 index and cannot delete all of them to restore this one (data_index).

I found something like:

POST /_snapshot/es_repo/my-index-2024.08.03-hloltm5brfyyntt1mrhqcg/_restore
{
  "indices": "data_index",
  "ignore_unavailable": true,
  "include_global_state": false,
  "wait_for_completion": true
}

I made multiple snapshots from all of the rest of the indexes, deleted everything, and restored all at once.

It works for me although that is not the best way but the only way I come up with.

1 Like

Thanks for sharing your solution, @shrm.