Snapshot Restore

Hi,
I'm trying to snapshot restore using a repository. This is the command i am running:

PUT -u user:password /_snapshot/my_backup/snapshot_20181011

and I'm getting this error (in dev tools kibana):
{
"error": "Content-Type header [text/plain] is not supported",
"status": 406
}

I've tried variations such as
PUT -u user:password /_snapshot/my_backup/snapshot_20190308 -H 'Content-Type: application/json' -d

but i get exactly the same error.

Can someone help me with this?

Thank you!

I do not know that the Kibana dev tools supports passing the username and password like this. I think you don't need to include this, because you already logged into Kibana.

You are confusing the syntax for curl with the syntax that is permitted in Kibana. You just write

PUT /_snapshot/my_backup/snapshot_20181011
{
  "maybe": {"some": "more"},
  "options": "here"
}

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.