Restoring indices through a snapshot


#1

Hi all,
i would like to restore the indices from a snapshot by using alias name but not the indexname

POST /_snapshot/xxxxxxx/snapshot_16_02_2018/_restore
{
 "indices": "alias_name",
 "ignore_unavailable": "true",
 "include_global_state": false
}

this is not working because i have given alias name instead of index name in "indices":alias name
how can i restore the data using alias name

can anyone help on this i appreaciate quick response.

Thank you.


#2

though if i provide this way is not working

POST /_snapshot/xxxxxxx/snapshot_16_02_2018/_restore
{
 "aliases": "alias_name",
 "ignore_unavailable": "true",
 "include_global_state": false
}

i have replaced indices api with aliases

please help on this


(system) #3

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