backup-cluster-data.asciidoc 1.5 KB

1234567891011121314151617181920212223242526272829303132333435
  1. [[backup-cluster-data]]
  2. === Back up a cluster's data
  3. ++++
  4. <titleabbrev>Back up the data</titleabbrev>
  5. ++++
  6. As with any software that stores data, it is important to routinely back up your
  7. data. {es} replicas provide high availability during runtime; they enable you to
  8. tolerate sporadic node loss without an interruption of service.
  9. Replicas do not provide protection from catastrophic failure, however. For that,
  10. you need a real backup of your cluster—a complete copy in case something goes
  11. wrong.
  12. To back up your cluster's data, you can use the <<modules-snapshots,snapshot API>>.
  13. include::{es-repo-dir}/modules/snapshots.asciidoc[tag=snapshot-intro]
  14. [TIP]
  15. ====
  16. If your cluster has {es} {security-features} enabled, when you back up your data
  17. the snapshot API call must be authorized.
  18. The `snapshot_user` role is a reserved role that can be assigned to the user
  19. who is calling the snapshot endpoint. This is the only role necessary if all the user
  20. does is periodic snapshots as part of the backup procedure. This role includes
  21. the privileges to list all the existing snapshots (of any repository) as
  22. well as list and view settings of all indices, including the `.security` index.
  23. It does *not* grant privileges to create repositories, restore snapshots, or
  24. search within indices. Hence, the user can view and snapshot all indices, but cannot
  25. access or modify any data.
  26. For more information, see {stack-ov}/security-privileges.html[Security privileges]
  27. and {stack-ov}/built-in-roles.html[Built-in roles].
  28. ====