# Update Snapshot in the repo with same name?

**URL:** https://discuss.elastic.co/t/update-snapshot-in-the-repo-with-same-name/181446
**Category:** Elasticsearch
**Created:** [May 16, 2019, 3:59pm UTC](https://discuss.elastic.co/t/update-snapshot-in-the-repo-with-same-name/181446 "2019-05-16T15:59:36Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Mohit\_Ruke](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mohit_ruke/32/46323_2.png) [@Mohit\_Ruke](https://discuss.elastic.co/u/Mohit_Ruke)
#### Post date: [May 16, 2019, 3:59pm UTC](https://discuss.elastic.co/t/update-snapshot-in-the-repo-with-same-name/181446/1 "2019-05-16T15:59:36Z")

</div>

Is there any way to update a snapshot in a repo after adding new records to an index?

---

<div class="post-metadata">

### Author: ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)
#### Post date: [May 16, 2019, 5:38pm UTC](https://discuss.elastic.co/t/update-snapshot-in-the-repo-with-same-name/181446/2 "2019-05-16T17:38:20Z")

</div>

Sure. Create a new snapshot and it will "update" the repository.  
I think that's what you want.

---

<div class="post-metadata">

### Author: ![Mohit\_Ruke](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mohit_ruke/32/46323_2.png) [@Mohit\_Ruke](https://discuss.elastic.co/u/Mohit_Ruke)
#### Post date: [May 16, 2019, 5:48pm UTC](https://discuss.elastic.co/t/update-snapshot-in-the-repo-with-same-name/181446/3 "2019-05-16T17:48:06Z")

</div>

suppose I have a snapshot snap1 of index movie-123 having 1 record  
No i add few more records to the index and now can i update snap1 with the new records and store it in s3

When I try to create a snapshot with the same name it gives error  
{  
"error": "InvalidSnapshotNameException[[repo1:snapshot1] Invalid snapshot name [snapshot1], snapshot with such name already exists]",  
"status": 400  
}

So my question was whether an update to the same snapshot is possible or not ?

---

<div class="post-metadata">

### Author: ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)
#### Post date: [May 16, 2019, 6:57pm UTC](https://discuss.elastic.co/t/update-snapshot-in-the-repo-with-same-name/181446/4 "2019-05-16T18:57:46Z")

</div>

Just create a new snapshot and it will do a similar thing that you're expecting.

---

<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: [June 13, 2019, 6:57pm UTC](https://discuss.elastic.co/t/update-snapshot-in-the-repo-with-same-name/181446/5 "2019-06-13T18:57:55Z")

</div>

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