But I am missing the prerequisite steps.
Here is my situation -
I have a working Elasticsearch setup in my Windows PC. I can run POST, GET commands and follow tutorials.
I have now received a snapshot of some other working setup (unix). I can restore the tar file in unix system and copy files/folders over to my local disk in PC. But what is not clear is where should I place that folder and how should I mention that folder name in above POST command.
Please format your code, logs or configuration files using </> icon as explained in this guide and not the citation button. It will make your post more readable.
Or use markdown style like:
```
CODE
```
This is the icon to use if you are not using markdown format:
There's a live preview panel for exactly this reasons.
Lots of people read these forums, and many of them will simply skip over a post that is difficult to read, because it's just too large an investment of their time to try and follow a wall of badly formatted text.
If your goal is to get an answer to your questions, it's in your interest to make it as easy to read and understand as possible.
Thank you David.
I did two extra steps. One to register the new Windows location by adding path.repo in yml file.
Restarted elasticsearch after changing yml file.
Also registered using the following (used escape character for windows location)
```
PUT /_snapshot/xyz
{
"type" : "fs",
"settings" : {
"location" : "C:\\Elasticsearch\\xyz"
}
}
```
That seems to have worked.
But the RESTORE step still fails.
```
POST /_snapshot/xyz/snapshot_1/_restore
{
"type" : "fs",
"settings" : {
"location" : "C:\\Elasticsearch\\xyz"
}
}
```
Here is the error -
```
{
"error": {
"root_cause": [
{
"type": "illegal_argument_exception",
"reason": "Unknown parameter type"
}
],
"type": "illegal_argument_exception",
"reason": "Unknown parameter type"
},
"status": 400
}
```
Can you please check and advise?
Thank you
Thanks @dadoonet for prompt response. The following command seems to work for restore (as I do not get syntax error). However, I get version mismatch issue and I need to get back to the provider of the snapshot. As far as I can see, there are 3 steps for restore.
Once I downgraded to version 7.3.2 (matching with provider of snapshot in my case), all 3 steps worked properly. I shall create new ticket if and when I have more issues. Thank you
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.