# Exporting snapshot for security and hot backup

**URL:** <https://discuss.elastic.co/t/exporting-snapshot-for-security-and-hot-backup/276767>\
**Category:** Elasticsearch\
**Tags:** docker\
**Created:** [June 23, 2021, 9:56am UTC](https://discuss.elastic.co/t/exporting-snapshot-for-security-and-hot-backup/276767 "2021-06-23T09:56:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bibas](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bibas/32/67732_2.png) [@Bibas](https://discuss.elastic.co/u/Bibas)\
**Post date:** [June 23, 2021, 9:56am UTC](https://discuss.elastic.co/t/exporting-snapshot-for-security-and-hot-backup/276767/1 "2021-06-23T09:56:00Z")

</div>

Hello !

I have 2 question :

- I know that snapshot and restore is the best way to backup an elasticsearch cluster, but since my ES is running inside a docker container which have a named volume, is it possible to backup this volume without stopping my ES container ? (i.e. is hot backup supported on ES ? )

- Is it possible to export (or download) the snapshot created in ES in order to store it somewhere else ? From what I saw, the snapshot seems to be stored in .dat file and maybe in the indices/ folder but is it possible to export it as a tar archive maybe ? And will it be a problem when I try to restore it ?

Thanks !

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [June 23, 2021, 10:01am UTC](https://discuss.elastic.co/t/exporting-snapshot-for-security-and-hot-backup/276767/2 "2021-06-23T10:01:01Z")

</div>

> [@Bibas](#):
>
> I know that snapshot and restore is the best way to backup an elasticsearch cluster

In recent versions it is the only suppoted way to back up your Elasticsearch cluster.

> [@Bibas](#):
>
> Is it possible to export (or download) the snapshot created in ES in order to store it somewhere else ?

Snapshots require external shared storage e.g. NFS volume or S3.

---

<div class="post-metadata">

**Author:** ![Bibas](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bibas/32/67732_2.png) [@Bibas](https://discuss.elastic.co/u/Bibas)\
**Post date:** [June 23, 2021, 10:14am UTC](https://discuss.elastic.co/t/exporting-snapshot-for-security-and-hot-backup/276767/3 "2021-06-23T10:14:49Z")

</div>

Thank you for the (very) fast answer @Christian_Dahlqvist !

From what I saw on Kibana, I only have 2 choices :

- the read-only url, since it's read only I suppose I can't export snapshots with it ?
- the shared file system which I tried to use but only seems to store the snapshot in the path I choose, which is a local solution

Which one should I use ? Am I doing something wrong ?

---

<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 21, 2021, 10:14am UTC](https://discuss.elastic.co/t/exporting-snapshot-for-security-and-hot-backup/276767/4 "2021-07-21T10:14:52Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
