# Incremental backup

**URL:** <https://discuss.elastic.co/t/incremental-backup/32199>\
**Category:** Elasticsearch\
**Created:** [October 14, 2015, 5:35pm UTC](https://discuss.elastic.co/t/incremental-backup/32199 "2015-10-14T17:35:34Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![genesis](https://avatars.discourse-cdn.com/v4/letter/g/96bed5/32.png) [@genesis](https://discuss.elastic.co/u/genesis)\
**Post date:** [October 14, 2015, 5:35pm UTC](https://discuss.elastic.co/t/incremental-backup/32199/1 "2015-10-14T17:35:34Z")

</div>

Our cluster has not been backup since the beginning of the year. I ran the API to backup all the indices as listed below it took 19 hours, lots of data. I am planning to run the backup on a daily basis going forward. How would I make sure it does not backup the same indices over and over and taking lots of disk space? 2nd question, does the snapshots names need to be unique when I ran backup on daily basis on can I use the same name eg. snapshot\_abc\_2015

curl -XPUT "localhost:9200/\_snapshot/s3\_repository/snapshot\_abc\_2015?wait\_for\_completion=true" -d '{  
"indices": "abc-2015.\*",  
"include\_global\_state": false }'

---

<div class="post-metadata">

**Author:** ![nik9000](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nik9000/32/44947_2.png) [@nik9000](https://discuss.elastic.co/u/nik9000)\
**Post date:** [October 14, 2015, 5:49pm UTC](https://discuss.elastic.co/t/incremental-backup/32199/2 "2015-10-14T17:49:28Z")

</div>

> [@genesis](#):
>
> How would I make sure it does not backup the same indices over and over and taking lots of disk space?

The backups automatically share files where possible - and since the indexes are made of up readonly files for the most part backing up the same index twice is fine. If you modify the index then the files will be different but you'll be able to restore to either one. When you remove the old backup any files that are no longer referenced will be removed as well.

> [@genesis](#):
>
> 2nd question, does the snapshots names need to be unique when I ran backup on daily basis on can I use the same name eg. snapshot\_abc\_2015

Unique I believe. You'll want to be able to keep the last N or something.

---

<div class="post-metadata">

**Author:** ![genesis](https://avatars.discourse-cdn.com/v4/letter/g/96bed5/32.png) [@genesis](https://discuss.elastic.co/u/genesis)\
**Post date:** [October 14, 2015, 8:08pm UTC](https://discuss.elastic.co/t/incremental-backup/32199/3 "2015-10-14T20:08:04Z")

</div>

Thanks a lot for the reply

---

<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:** [July 5, 2017, 11:44pm UTC](https://discuss.elastic.co/t/incremental-backup/32199/4 "2017-07-05T23:44:49Z")

</div>


