# Backup Of Elastic Cluster

**URL:** <https://discuss.elastic.co/t/backup-of-elastic-cluster/378474>\
**Category:** Elasticsearch\
**Tags:** slm-snapshot-lifecycle-management\
**Created:** [May 23, 2025, 3:37pm UTC](https://discuss.elastic.co/t/backup-of-elastic-cluster/378474 "2025-05-23T15:37:47Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Debasis\_Mallick](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/debasis_mallick/32/123723_2.png) [@Debasis\_Mallick](https://discuss.elastic.co/u/Debasis_Mallick)\
**Post date:** [May 23, 2025, 3:37pm UTC](https://discuss.elastic.co/t/backup-of-elastic-cluster/378474/1 "2025-05-23T15:37:47Z")

</div>

Hi Team,

If we want to take backup of elastic cluster by using below command. Will it take backup everything in cluster like ILM Policy, SLM Policy and any settings related to cluster.

```auto
PUT _slm/policy/weekly-snapshots
{
  "schedule": "0 00 2 ? * 1",
  "name": <weeklysnap-{now/d}> ",
  "repository": "<repo-name>",
  "config": {
    "indices": ["*"],
    "include_global_state": true
  },
  "retention": {
    "expire_after": "30d",
    "min_count": 5,
   "max_count": 50
  }
}

```

Thanks,  
Debasis

---

<div class="post-metadata">

**Author:** ![Rafa\_Silva](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rafa_silva/32/147814_2.png) [@Rafa\_Silva](https://discuss.elastic.co/u/Rafa_Silva)\
**Post date:** [May 24, 2025, 1:26am UTC](https://discuss.elastic.co/t/backup-of-elastic-cluster/378474/2 "2025-05-24T01:26:43Z")

</div>

Hey Debasis,

That snapshot policy will back up all indices (because of "indices": ["\*"]) and also the global cluster state since "include\_global\_state": true.

So yes — it will capture things like index templates, ILM and SLM policies, users/roles (if security is enabled), and other cluster-level settings.

Just keep in mind: some settings (like snapshots repositories themselves) aren’t stored inside snapshots, so you’d need to recreate those manually before restoring.

---

<div class="post-metadata">

**Author:** ![Debasis\_Mallick](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/debasis_mallick/32/123723_2.png) [@Debasis\_Mallick](https://discuss.elastic.co/u/Debasis_Mallick)\
**Post date:** [May 26, 2025, 3:26pm UTC](https://discuss.elastic.co/t/backup-of-elastic-cluster/378474/3 "2025-05-26T15:26:45Z")

</div>

Thanks @Rafa_Silva for confirmation. I would like to confirm that I have the most recent backup and that my previous cluster is no longer in operation. This means I can restore everything from the backup to the new cluster and proceed with my work as usual.

Thanks,  
Debasis

---

<div class="post-metadata">

**Author:** ![Rafa\_Silva](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rafa_silva/32/147814_2.png) [@Rafa\_Silva](https://discuss.elastic.co/u/Rafa_Silva)\
**Post date:** [May 26, 2025, 4:30pm UTC](https://discuss.elastic.co/t/backup-of-elastic-cluster/378474/4 "2025-05-26T16:30:45Z")

</div>

You’re welcome! Yes, as long as your snapshot is recent and complete, you can restore it to a new cluster and continue working normally. Just make sure to recreate the snapshot repo in the new cluster first.
