Restore snapshot with different index name

I have a snapshot and name of the index is my_index1
I did copy whole tar ball and transfer to new cluster

here I put this snpshot. Now I can see that when I do GET status

I am trying to restore this index here with new name you_index1 but do not know how to do this..

in API it does not work when I do this.

from command line also it does not work. it just restores index with same name

POST /_snapshot/my_index1/10dec2020/_restore
  "indices": "my_index1",
  "ignore_unavailable": true,
  "include_global_state": true,
  "rename_pattern": "your_index1"

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