Skip to content

Unable to skip some indices while restoring #1673

@mimol91

Description

@mimol91

Unable to skip some indices while restoring

Steps to Reproduce the Problem

I want to restore all indices except starting with "A"
ES query to do it is

POST _snapshot/repo/snapshot/_restore
{
  "indices": "*,-A*",
  "index_settings": {
    "index.number_of_replicas": 0
  }
}

However, Curator requires a list of indices (Doc at https://www.elastic.co/guide/en/elasticsearch/client/curator/7.0/option_indices.html show you can pass a string but it's not true)

When providing a list ES won't restore anything.

{
  "indices": ["*,-A*"],
  "index_settings": {
    "index.number_of_replicas": 0
  }
}

Could you please allow to provide indices as a string
Do you know any other way how to restore all indices except indices starting with "A" ?


Providing indices as

"indices": ["*","-A*"]

seems to work more or less ok - it do not restore indices starting with *, but returns some curator errors

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions