# Incremental Snapshot in Elasticsearch

**URL:** <https://discuss.elastic.co/t/incremental-snapshot-in-elasticsearch/93874>\
**Category:** Elasticsearch\
**Created:** [July 20, 2017, 6:56am UTC](https://discuss.elastic.co/t/incremental-snapshot-in-elasticsearch/93874 "2017-07-20T06:56:10Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hemant\_Gupta](https://avatars.discourse-cdn.com/v4/letter/h/f17d59/32.png) [@Hemant\_Gupta](https://discuss.elastic.co/u/Hemant_Gupta)\
**Post date:** [July 20, 2017, 6:56am UTC](https://discuss.elastic.co/t/incremental-snapshot-in-elasticsearch/93874/1 "2017-07-20T06:56:10Z")

</div>

Continuing the discussion from [[ES-1.4.2] Snapshot FS Repository directory structure](https://discuss.elastic.co/t/es-1-4-2-snapshot-fs-repository-directory-structure/22181/3):

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...

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [July 20, 2017, 6:59am UTC](https://discuss.elastic.co/t/incremental-snapshot-in-elasticsearch/93874/2 "2017-07-20T06:59:52Z")

</div>

You'd need to delete the existing snapshot to use the same name.

---

<div class="post-metadata">

**Author:** ![Hemant\_Gupta](https://avatars.discourse-cdn.com/v4/letter/h/f17d59/32.png) [@Hemant\_Gupta](https://discuss.elastic.co/u/Hemant_Gupta)\
**Post date:** [July 20, 2017, 10:22am UTC](https://discuss.elastic.co/t/incremental-snapshot-in-elasticsearch/93874/3 "2017-07-20T10:22:08Z")

</div>

Hi ,

I just wanted to understand how incremental snapshot works in Elasticsearch..Wanted to clear one thing if I make a snapshot A of an index test then do some changes like add/delete documents then make another snapshot so during the snapshot process only the changes i did for add/delete in an index will be snapshot not the complete index snapshot only changes will be snapshot???

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [July 20, 2017, 11:56am UTC](https://discuss.elastic.co/t/incremental-snapshot-in-elasticsearch/93874/4 "2017-07-20T11:56:48Z")

</div>

No, snapshots are incremental at the segment level. In addition to the docs, [this blog post](https://www.elastic.co/blog/found-elasticsearch-snapshot-and-restore) described how it works quite well even if it is getting a bit old.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [August 17, 2017, 11:57am UTC](https://discuss.elastic.co/t/incremental-snapshot-in-elasticsearch/93874/5 "2017-08-17T11:57:06Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
