| 123456789101112131415161718192021222324252627282930313233 | [[high-availability]]= Set up a cluster for high availability[partintro]--As with any software that stores data,it is important to routinely back up your data.{es}'s <<glossary-replica-shard,replica shards>> provide high availabilityduring runtime;they enable you to tolerate sporadic node losswithout an interruption of service.However, replica shards do not protect an {es} clusterfrom catastrophic failure.You need a backup of your cluster—a copy in case something goes wrong.{es} offers two features to support high availability for a cluster:* <<backup-cluster,Snapshot and restore>>,which you can use to back up individual indices or entire clusters.You can automatically store these backups in a repository on a shared filesystem.* <<xpack-ccr,Cross-cluster replication (CCR)>>,which you can use to copy indices in remote clusters to a local cluster.You can use {ccr} to recover from the failure of a primary clusteror serve data locally based on geo-proximity.--include::high-availability/backup-cluster.asciidoc[]include::ccr/index.asciidoc[]
 |