On Backup and Restore can I filter terms on Index?

Something like:

curl -XPUT 'http://xxxxxx:9200/_snapshot/20151106/snapshot_3' -d '{
"indices": "metrics-*",
"query": "env=pro",
"ignore_unavailable": "true",
"include_global_state": false
}'

No, this isn't possible with the snapshot/restore APIs. You'd have to restore the whole index to a temporary index and copy the desired documents to the final index.

1 Like

Ok! thank you!