# Snapshot/restore questions

**URL:** <https://discuss.elastic.co/t/snapshot-restore-questions/20297>\
**Category:** Elasticsearch\
**Created:** [October 17, 2014, 2:41am UTC](https://discuss.elastic.co/t/snapshot-restore-questions/20297 "2014-10-17T02:41:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![skm](https://avatars.discourse-cdn.com/v4/letter/s/97f17d/32.png) [@skm](https://discuss.elastic.co/u/skm)\
**Post date:** [October 17, 2014, 2:41am UTC](https://discuss.elastic.co/t/snapshot-restore-questions/20297/1 "2014-10-17T02:41:43Z")

</div>

Hello List,

we have 8 node ES cluster.

Following commands are used to create the repository and the snapshots.

creating a repository for snapshots in s3

curl -XPOST localhost:9200/\_snapshot/s3\_logstash\_repository -d '  
{  
"type": "s3",  
"settings" : {  
"bucket": "elasticsearch-bkp",  
"base\_path": "logstash-backup",  
"compress": "true",  
"access\_key": "",  
"secret\_key": ""  
}  
}'

For snapshot following command is used

curl -XPUT  
"localhost:9200/\_snapshot/s3\_logstash\_repository/$INDEXNAME?wait\_for\_completion=true&pretty"

Now I am trying to understand if the repository needs to be created on \*each  
node \*in cluster? Does the snapshots be run on _each node_?

I am scheduling the snapshots using cron jobs, so I want to be clear if  
this jobs needs to be run on each node? And if so then restore operations  
need all snapshot files created by the multiple nodes?

Please provide an insight.

Thanks,  
Skm

--  
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/5bbee63e-c234-4a2a-a025-10fefca4ea9f%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/5bbee63e-c234-4a2a-a025-10fefca4ea9f%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:55am UTC](https://discuss.elastic.co/t/snapshot-restore-questions/20297/2 "2017-07-06T00:55:37Z")

</div>


