Hi,
Almost embarrassed to ask this but how on earth do I create a repository and take a snapshot for a single node running on windows? I thought I had previously done this but my notes are obviously wrong as what I thought was previously working no longer is.
Running a fresh install of v 6.5.4 with absolutely nothing in it.
elasticsearch.yml has a path.repo entry added as
path.repo: ["\\\\R5874\\elkrepo"]
on R5874 I've created a windows share called elkrepo and even given "anyone" full control just to try it out. This is also accessible when I open up \R5874\elkrepo
I next restart elasticsearch (I should add that I've changed the port to 9700)
I then uses postman to see if there are any repositories that already exist (though shouldn't be as fresh install)
GET http://R5874:9700/_snapshot/_all?pretty
That returns {}
I next do
PUT http://R5874:9700/_snapshot/elk_backup
{
"type": "fs",
"settings": {
"compress" : true,
"location": "\R5874\elkrepo"
}
}
that returns
{
"acknowledged": true,
"shards_acknowledged": true,
"index": "}"
}
However, if I then do
POST http://R5874:9700/_snapshot/elk_backup/snapshot_1?wait_for_completion=true
I receive the below response
{
"error": {
"root_cause": [
{
"type": "repository_missing_exception",
"reason": "[elk_backup] missing"
}
],
"type": "repository_missing_exception",
"reason": "[elk_backup] missing"
},
"status": 404
}
Again, I thought I was having heaps of problems when first trying this out several months ago but had it finally working and hence why I took notes but either I noted down the wrong info or I'm delusional and it was never working.
Any help with this would be much appreciated and saving what little hair I have left.