Ok. Firstly, I created repository on Centos 6.7 with ES 2.4.1:
PUT /_snapshot/elastic_titub_yedek
{
"type": "fs",
"settings": {
"location":"/backup/elastic_titub_yedek",
"compress":true,
"chunk_size": "10m"
}
}
Secondly, I created snapshot on Centos 6.7 with ES 2.4.1:
PUT /_snapshot/elastic_titub_yedek/snapshot_elastic_titub_yedek
{
"indices": "titub2",
"ignore_unavailable": true,
"include_global_state": false
}
Finally I restored on Centos 6.7 with ES 2.4.1
POST /_snapshot/elastic_titub_yedek/snapshot_elastic_titub_yedek/_restore
{
"indices": "titub2",
"ignore_unavailable": true,
"include_global_state": true,
"rename_pattern": "index_(.+)",
"rename_replacement": "restored_index_$1"
}
Is it right here?
After I installed windows10 platform and I installedES 5.0.0.
Firstly, I created repository on Windows10 with ES 5.0.0:
PUT /_snapshot/elastic_titub_yedek
{
"type": "fs",
"settings": {
"location":"C:\\elasticsearch-5.0.0\\backup\\elastic_titub_yedek",
"compress":true,
"chunk_size": "10m"
}
}
result:
{
"acknowledged": true
}
Secondly, I restored on Windows10 with ES 5.0.0
POST /_snapshot/elastic_titub_yedek/snapshot_elastic_titub_yedek/_restore
{
"indices": "titub2",
"ignore_unavailable": true,
"include_global_state": true,
"rename_pattern": "index_(.+)",
"rename_replacement": "restored_index_$1"
}
Result:
{
"accepted": true
}
is it correct?