Book Image

Elasticsearch 7 Quick Start Guide

By : Anurag Srivastava, Douglas Miller
Book Image

Elasticsearch 7 Quick Start Guide

By: Anurag Srivastava, Douglas Miller

Overview of this book

Elasticsearch is one of the most popular tools for distributed search and analytics. This Elasticsearch book highlights the latest features of Elasticsearch 7 and helps you understand how you can use them to build your own search applications with ease. Starting with an introduction to the Elastic Stack, this book will help you quickly get up to speed with using Elasticsearch. You'll learn how to install, configure, manage, secure, and deploy Elasticsearch clusters, as well as how to use your deployment to develop powerful search and analytics solutions. As you progress, you'll also understand how to troubleshoot any issues that you may encounter along the way. Finally, the book will help you explore the inner workings of Elasticsearch and gain insights into queries, analyzers, mappings, and aggregations as you learn to work with search results. By the end of this book, you'll have a basic understanding of how to build and deploy effective search and analytics solutions using Elasticsearch.
Table of Contents (10 chapters)

Data backup and snapshots

It is important to back up a cluster and all the data it contains. We have already talked about replica shards in the previous section. These are not appropriate as a backup, as they do not provide any data protection. Instead, there is a specific API that snapshots and then restores data. The snapshot and restore API is a cluster backup mechanism that saves the current state of the cluster in a repository. We also use the reindex API to make temporary backups when making certain bulk document changes, such as _update_by_query and _delete_by_query. Back up all documents first with _reindex.

There are a few different ways to create a repository for backups. All of the following are supported:

  • Shared file systems: fs file type
  • Read-only URLs: url file type
  • S3: s3 file type
  • HDFS: hdfs file type
  • Azure: azure file type
  • Google Cloud Storage: gcs file type
  • ...