# How to Backup Cluster by Time Scheduled:

**URL:** <https://discuss.elastic.co/t/how-to-backup-cluster-by-time-scheduled/23036>\
**Category:** Elasticsearch\
**Created:** [April 1, 2015, 11:47am UTC](https://discuss.elastic.co/t/how-to-backup-cluster-by-time-scheduled/23036 "2015-04-01T11:47:57Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![James\_Crone](https://avatars.discourse-cdn.com/v4/letter/j/e68b1a/32.png) [@James\_Crone](https://discuss.elastic.co/u/James_Crone)\
**Post date:** [April 1, 2015, 11:47am UTC](https://discuss.elastic.co/t/how-to-backup-cluster-by-time-scheduled/23036/1 "2015-04-01T11:47:57Z")

</div>

I have create a backup directory using FS Technique.

```
 PUT _snapshot/databackup {
   "type": "fs", 
   "settings": {
      "location": "/mount/backups/my_backup" 
   } }

```

Then:

```
 PUT _snapshot/my_backup/snapshot_2 {
   "indices": "completedata" }

```

Its working.But when my database table update or insert new records backup not update automatically.How Can i Do this auto  
backup after 1 day or by defining time.

Thanks in advance.

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/3aa4d6ea-a0c5-427c-973d-90ea292700c8%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/3aa4d6ea-a0c5-427c-973d-90ea292700c8%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![vangap](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vangap/32/44927_2.png) [@vangap](https://discuss.elastic.co/u/vangap)\
**Post date:** [April 1, 2015, 12:04pm UTC](https://discuss.elastic.co/t/how-to-backup-cluster-by-time-scheduled/23036/2 "2015-04-01T12:04:36Z")

</div>

You can set up a cron job to run a script like this every day

#!/bin/sh

> curl -XPUT "localhost:9200/\_snapshot/my\_s3\_repository/$(date  
> +"%Y.%m.%d.%H.%M.%S")?wait\_for\_completion=true?pretty"

On Wednesday, April 1, 2015 at 5:17:57 PM UTC+5:30, James Crone wrote:

> I have create a backup directory using FS Technique.
> 
> ```
> PUT _snapshot/databackup {
> "type": "fs", 
> "settings": {
> "location": "/mount/backups/my_backup" 
> } }
> 
> ```
> 
> Then:
> 
> ```
> PUT _snapshot/my_backup/snapshot_2 {
> "indices": "completedata" }
> 
> ```
> 
> Its working.But when my database table update or insert new records backup not update automatically.How Can i Do this auto  
> backup after 1 day or by defining time.
> 
> Thanks in advance.

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/d0b746f4-4587-44d5-872a-ccec64e41cdd%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/d0b746f4-4587-44d5-872a-ccec64e41cdd%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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 6, 2017, 12:22am UTC](https://discuss.elastic.co/t/how-to-backup-cluster-by-time-scheduled/23036/3 "2017-07-06T00:22:23Z")

</div>


