# Daily cluster backup

**URL:** https://discuss.elastic.co/t/daily-cluster-backup/6988
**Category:** Elasticsearch
**Created:** [March 14, 2012, 3:44am UTC](https://discuss.elastic.co/t/daily-cluster-backup/6988 "2012-03-14T03:44:27Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![luizgpsantos](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/luizgpsantos/32/608_2.png) [@luizgpsantos](https://discuss.elastic.co/u/luizgpsantos)
#### Post date: [March 14, 2012, 3:44am UTC](https://discuss.elastic.co/t/daily-cluster-backup/6988/1 "2012-03-14T03:44:27Z")

</div>

We are planning to use ES as a noSQL database solution. To do that we need  
to generate a daily backup and copy it to tape.  
We tried to use fs gateway but we noticed that the recovery was greatly  
impacted when we did a full cluster restart, as it seems to recover the  
cluster from the last backup. Using the local gateway, it performed well.

We thought of using more then one gateway at a time, but the system won't  
start correctly. To do the index backup using the rsync solution that was  
presented in the list, we will probably take some time to setup each client  
and there is the risk of forgetting some nodes out of the backup. If this  
happens, we can loose some shards.

Is there any solution that was implemented to solve this kind of problem in  
an ES environment ? Can we use more than one gateway at a time? If so, how  
can we use it to a backup solution.

--  
Luiz Guilherme P. Santos

---

<div class="post-metadata">

### Author: ![kimchy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kimchy/32/44952_2.png) [@kimchy](https://discuss.elastic.co/u/kimchy)
#### Post date: [March 14, 2012, 12:31pm UTC](https://discuss.elastic.co/t/daily-cluster-backup/6988/2 "2012-03-14T12:31:59Z")

</div>

The recommended way is to use local gateway and rsync / copy over the files from the data location of each node (disable the translog flush before issuing the rsync command). Hopefully, in the future, we will have an API to do backup with more options and be a bit more usable.

On Wednesday, March 14, 2012 at 5:44 AM, Luiz Guilherme Pais dos Santos wrote:

> We are planning to use ES as a noSQL database solution. To do that we need to generate a daily backup and copy it to tape.  
> We tried to use fs gateway but we noticed that the recovery was greatly impacted when we did a full cluster restart, as it seems to recover the cluster from the last backup. Using the local gateway, it performed well.
> 
> We thought of using more then one gateway at a time, but the system won't start correctly. To do the index backup using the rsync solution that was presented in the list, we will probably take some time to setup each client and there is the risk of forgetting some nodes out of the backup. If this happens, we can loose some shards.
> 
> Is there any solution that was implemented to solve this kind of problem in an ES environment ? Can we use more than one gateway at a time? If so, how can we use it to a backup solution.
> 
> --  
> Luiz Guilherme P. Santos

---

<div class="post-metadata">

### Author: ![Jack\_Chen](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jack_chen/32/2464_2.png) [@Jack\_Chen](https://discuss.elastic.co/u/Jack_Chen)
#### Post date: [March 4, 2013, 4:11am UTC](https://discuss.elastic.co/t/daily-cluster-backup/6988/3 "2013-03-04T04:11:41Z")

</div>

In a cluster where a node may not have all the shards, what's the  
easiest/recommended way to get a node to have all the shards to do a full  
backup?

On Wednesday, 14 March 2012 23:31:59 UTC+11, kimchy wrote:

> The recommended way is to use local gateway and rsync / copy over the  
> files from the data location of each node (disable the translog flush  
> before issuing the rsync command). Hopefully, in the future, we will have  
> an API to do backup with more options and be a bit more usable.
> 
> On Wednesday, March 14, 2012 at 5:44 AM, Luiz Guilherme Pais dos Santos  
> wrote:
> 
> We are planning to use ES as a noSQL database solution. To do that we need  
> to generate a daily backup and copy it to tape.  
> We tried to use fs gateway but we noticed that the recovery was greatly  
> impacted when we did a full cluster restart, as it seems to recover the  
> cluster from the last backup. Using the local gateway, it performed well.
> 
> We thought of using more then one gateway at a time, but the system won't  
> start correctly. To do the index backup using the rsync solution that was  
> presented in the list, we will probably take some time to setup each client  
> and there is the risk of forgetting some nodes out of the backup. If this  
> happens, we can loose some shards.
> 
> Is there any solution that was implemented to solve this kind of problem  
> in an ES environment ? Can we use more than one gateway at a time? If so,  
> how can we use it to a backup solution.
> 
> --  
> Luiz Guilherme P. Santos

--  
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).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

### Author: ![Vijay\_Prabhakar](https://avatars.discourse-cdn.com/v4/letter/v/2acd7d/32.png) [@Vijay\_Prabhakar](https://discuss.elastic.co/u/Vijay_Prabhakar)
#### Post date: [July 3, 2013, 6:32am UTC](https://discuss.elastic.co/t/daily-cluster-backup/6988/4 "2013-07-03T06:32:57Z")

</div>

Hi Kimchy,

I am trying to follow this backup script

> <https://gist.github.com/karussell/1074906>
>
> There are more than three files. show original

I have some few questions regarding this

1. We are using 5 clusters and each cluster having 3 nodes.
2. whether i need to rsync the "data" directory alone . is it enough to  
take backup from any one of the node for each cluster. Also can i recover  
the cluster using  
that data directory when some data crashes occur..?
3. In the above script they disabling flush to stop indexing data's/records  
to that node(Am i right ..?) What happens if any datas indexed at that  
time..?

On Wednesday, March 14, 2012 6:01:59 PM UTC+5:30, kimchy wrote:

> The recommended way is to use local gateway and rsync / copy over the  
> files from the data location of each node (disable the translog flush  
> before issuing the rsync command). Hopefully, in the future, we will have  
> an API to do backup with more options and be a bit more usable.
> 
> On Wednesday, March 14, 2012 at 5:44 AM, Luiz Guilherme Pais dos Santos  
> wrote:
> 
> We are planning to use ES as a noSQL database solution. To do that we need  
> to generate a daily backup and copy it to tape.  
> We tried to use fs gateway but we noticed that the recovery was greatly  
> impacted when we did a full cluster restart, as it seems to recover the  
> cluster from the last backup. Using the local gateway, it performed well.
> 
> We thought of using more then one gateway at a time, but the system won't  
> start correctly. To do the index backup using the rsync solution that was  
> presented in the list, we will probably take some time to setup each client  
> and there is the risk of forgetting some nodes out of the backup. If this  
> happens, we can loose some shards.
> 
> Is there any solution that was implemented to solve this kind of problem  
> in an ES environment ? Can we use more than one gateway at a time? If so,  
> how can we use it to a backup solution.
> 
> --  
> Luiz Guilherme P. Santos

--  
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).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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, 2:28am UTC](https://discuss.elastic.co/t/daily-cluster-backup/6988/5 "2017-07-06T02:28:31Z")

</div>


