Elasticsearch Repository

By Opster Team

Updated: Mar 10, 2024

| 1 min read

Overview

An Elasticsearch snapshot provides a backup mechanism that takes the current state and data in the cluster and saves it to a repository (read snapshot for more information). The backup process requires a repository to be created first. The repository needs to be registered using the _snapshot endpoint, and multiple repositories can be created per cluster. The following repository types are supported: 

Repository types

Repository typeConfiguration type
Shared file systemType: “fs”
S3Type : “s3”
HDFSType :“hdfs”
AzureType: “azure”
Google Cloud StorageType : “gcs”

Examples

To register an “fs” repository:

PUT _snapshot/my_repo_01
{
"type": "fs",
"settings": {
"location": "/mnt/my_repo_dir"
  }
}

Notes and good things to know

  • S3, HDFS, Azure and Google Cloud require a relevant plugin to be installed before it can be used for a snapshot.
  • The setting, path.repo: /mnt/my_repo_dir needs to be added to elasticsearch.yml on all the nodes if you are planning to use the repo type of file system. Otherwise, it will fail.
  • When using remote repositories, the network bandwidth and repository storage throughput should be high enough to complete the snapshot operations normally, otherwise you will end up with partial snapshots.

How helpful was this guide?

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?


Related log errors to this ES concept


The specified url doesn t start with any repository paths specified by the path repo setting or by repositories url allowed urls setting
The specified location doesn t start with any
Using local fs location for gateway should be changed to be a shared location across nodes
Unexpected token while reading snapshot metadata
Can t read metadata from store will not reuse any local file while restoring
Repository is on a pre-5.0 format with an index file that contains snapshot but
The specified url doesn t start with any repository paths specified by the path repo setting or by setting
Attempting to upgrade a pre-5.0 repository
Resetting repository generation tracker because we failed to read generation
Successfully loaded all snapshot s version information for from snapshot metadata
Failed to create blob container
No bucket defined for s3 repository

< Page: 10 of 19 >