Error in Repository Creation on Windows

Hi All,

I received the below error while creation of repository on Windows.

PUT http://localhost:9200/_snapshot/backup -d
{
"type": "fs",
"settings": {
"location": "C:\Users\Downloads\elasticsearch-1.6.0\es_backup_folder"
}
}

Error Received
......................
{
"error": "ElasticsearchParseException[Failed to derive xcontent from PUT http://localhost:9200/_snapshot/backup -d \n{\n"type": "fs",\n"settings": {\n"location": "C:\\Users\\Downloads\\elasticsearch-1.6.0\\es_backup_folder"\n}\n}\n]",
"status": 400
}

Replace \ by /

Hi David

Received same error after doing changes to Single / and double //

PUT http://localhost:9200/_snapshot/backup -d
{
"type": "fs",
"settings": {
"location": "C:/Users/Downloads/elasticsearch-1.6.0/es_backup_folder"}}

{
"error": "ElasticsearchParseException[Failed to derive xcontent from PUT http://localhost:9200/_snapshot/backup -d\n{\n"type": "fs",\n"settings": {\n"location": "C:/Users/Downloads/elasticsearch-1.6.0/es_backup_folder"}}\n]",
"status": 400
}

Remove -d

I removed -d and its working now, Thanks David.