Continuing the discussion from [ES-1.4.2] Snapshot FS Repository directory structure:
Hi Elasticsearch Champs:
I have managed to make a script for Elasticsearch snapshot and restore but I really wanted to override same snapshot over and over it so that only the changes i update in ES index that changes only got snapshot on the same snapshot i.e incremental update..
Please need your suggestion on this:
root@ip-10-1-0-115:/etc/elasticsearch# curl -XPUT 'localhost:9200/_snapshot/my_backup/snapshot_2?pretty' -H 'Content-Type: application/json' -d'
{
"indices": "test-index",
"ignore_unavailable": true,
"include_global_state": false
}
'
{
"accepted" : true
}
root@ip-10-1-0-115:/etc/elasticsearch# curl -XPUT 'localhost:9200/_snapshot/my_backup/snapshot_2?pretty' -H 'Content-Type: application/json' -d'
{
"indices": "test-index",
"ignore_unavailable": true,
"include_global_state": false
}
'
{
"error" : {
"root_cause" : [
{
"type" : "snapshot_creation_exception",
"reason" : "[my_backup:snapshot_2/wIr2rgXtTYmzT8mkTIXz3g] snapshot with the same name already exists"
}
],
"type" : "snapshot_creation_exception",
"reason" : "[my_backup:snapshot_2/wIr2rgXtTYmzT8mkTIXz3g] snapshot with the same name already exists"
},
"status" : 500
}
So as per above I just wanted to make sure that same snapshot:snapshot_2 should be able to override...