What's the best way to backup ILM policies & index templates

Hi everyone,

I'm currently looking for a way to backup ILM policies and index templates automatically, but I cannot find where these informations are stored, and I don't want to snapshot my entire cluster.
Is it stored in a dedicated index ?
If it's the case, I will be able to use the snapshot functionality, if not, I still can develop something to talk with the API directly and get the json...

Do you have any advice ?

Thanks !

Hi,

We use the ElasticSearch API to backup ILM policies and index templates.

This API also allows restoring the data using a PUT request...

Best regards
Wolfram

Hi, thanks for your answer. Yes basically that's what I had in mind and it works well.
But still don't find where these data can be located precisely :thinking:

What do you want to know? Do you mean where Elasticsearch stores it internally?

That's it