# Backup cluster

**URL:** <https://discuss.elastic.co/t/backup-cluster/62607>\
**Category:** Elasticsearch\
**Created:** [October 10, 2016, 7:45am UTC](https://discuss.elastic.co/t/backup-cluster/62607 "2016-10-10T07:45:07Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![minniek](https://avatars.discourse-cdn.com/v4/letter/m/aeb1de/32.png) [@minniek](https://discuss.elastic.co/u/minniek)\
**Post date:** [October 10, 2016, 7:45am UTC](https://discuss.elastic.co/t/backup-cluster/62607/1 "2016-10-10T07:45:07Z")

</div>

Hello everyone,  
I would like to backup part of my data to another server. I have in every index a field called "timestamp" and I would like to send to the backup cluster all the data older than 30 days and remove then in the primary cluster. Is it possible in an automatic way or do I have to code a script?

Thanks 🙂

---

<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:** [October 10, 2016, 7:47am UTC](https://discuss.elastic.co/t/backup-cluster/62607/2 "2016-10-10T07:47:01Z")

</div>

This isn't possible natively in ES yet, so you would need to do it externally.

Are you using time based indices?

---

<div class="post-metadata">

**Author:** ![minniek](https://avatars.discourse-cdn.com/v4/letter/m/aeb1de/32.png) [@minniek](https://discuss.elastic.co/u/minniek)\
**Post date:** [October 10, 2016, 8:24am UTC](https://discuss.elastic.co/t/backup-cluster/62607/3 "2016-10-10T08:24:46Z")

</div>

I havent read about time-based indices and I am afraid I dont have this option enabled because I could not find any log in the server.  
Do you know where the logs are supposed to be ??  
I think I can use this in order to add and delete docs massively. Do you have the same opinion?

Thanks

---

<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:** [October 10, 2016, 8:49am UTC](https://discuss.elastic.co/t/backup-cluster/62607/4 "2016-10-10T08:49:47Z")

</div>

Time based are just indexes arranged by time. So docs for today go in to an index called `indexname-2016.10.10`, tomorrow's go into `indexname-2016.10.11` etc.

This makes deletion easier as you just delete the entire index.

---

<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, 10:13pm UTC](https://discuss.elastic.co/t/backup-cluster/62607/5 "2017-07-05T22:13:41Z")

</div>


