Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to skip some indices while restoring #1673

Open
mimol91 opened this issue Mar 17, 2023 · 0 comments
Open

Unable to skip some indices while restoring #1673

mimol91 opened this issue Mar 17, 2023 · 0 comments

Comments

@mimol91
Copy link

mimol91 commented Mar 17, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant