# Snapshot and restore

**URL:** <https://discuss.elastic.co/t/snapshot-and-restore/34265>\
**Category:** Elasticsearch\
**Created:** [November 10, 2015, 4:16pm UTC](https://discuss.elastic.co/t/snapshot-and-restore/34265 "2015-11-10T16:16:09Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![trekr5](https://avatars.discourse-cdn.com/v4/letter/t/46a35a/32.png) [@trekr5](https://discuss.elastic.co/u/trekr5)\
**Post date:** [November 10, 2015, 4:16pm UTC](https://discuss.elastic.co/t/snapshot-and-restore/34265/1 "2015-11-10T16:16:09Z")

</div>

Hello,

Can someone please tell me what is the proper process to back up an elasticsearch cluster?

I have installed the curator plugin and have created a new snapshot in a registered repository for my snapshots.

curator --timeout 86400 --host \<es\_host\> snapshot --repository \<my\_registered\_repo\> indices --all-indices

My snapshot then created is called curator-20151110123220.

I can see that this snapshot is present in the registered repository by doing a curl \_XPUT 'localhost:9200/\_snapshot/\<my\_registered\_repo\>/\_all' because it returns snapshots which include curator-20151110123220.

I would like to upload this new snapshot to an s3 bucket which I have created.

I use the following command that should backup to an s3 bucket?

```
curl -XPUT http://esearch.logs.dev.aws.mycompany.service/_snapshot/<my_registered_repo> -d'

{
 "type": "s3",
 "settings": {
   "region": "",
    "bucket": "esearchbackup",
      "access_key":"xxxxxxxxxx",
      "secret_key":"xxxxxxxxxx"
   }

```

}'

I have ensured that my aws s3 credentials have full access and can write to the bucket.

When I run this command, should it then upload all contents of my\_registered\_repo to the s3 bucket called esearchbackup because when I look in this bucket I don't see my snapshot?

Does this look like the correct procedure to backup an elasticsearch cluster ? also can you tell me where on a node are the snapshots held?

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:** [November 10, 2015, 11:20pm UTC](https://discuss.elastic.co/t/snapshot-and-restore/34265/2 "2015-11-10T23:20:25Z")

</div>

Snapshots are stored wherever you defined the repository to be.

Otherwise that looks sane, check [https://www.elastic.co/guide/en/elasticsearch/guide/current/backing-up-your-cluster.html](https://www.elastic.co/guide/en/elasticsearch/guide/current/backing-up-your-cluster.html) for more context 🙂

---

<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:39pm UTC](https://discuss.elastic.co/t/snapshot-and-restore/34265/3 "2017-07-05T23:39:22Z")

</div>


