Hey there,
The use case is:
I want to default snapshot all indices. But, I want to leave out a few of them.
The environment I am working on is dynamic, and new indices are created daily. I want to determine with each new index, rather to snapshot or not.
I see that it is possible to snapshot all
PUT /_slm/policy/nightly-snapshots
{
...
"config": {
"indices": ["*"]
},
...
}
Or some
PUT /_slm/policy/nightly-snapshots
{
...
"config": {
"indices": ["index-1, index2"]
},
...
}
So I am after something like
...
"config": {
"indices": ["*"],
"exceptions": ["index-1, index-2, ..., index-N]
},
...
The alternative is of-course to add all indices which will make a very tedious job.
Thanks!