0
0
Elasticsearchquery~5 mins

Snapshot and restore in Elasticsearch - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is a snapshot in Elasticsearch?
A snapshot is a backup of your Elasticsearch cluster data and metadata, stored in a repository. It helps you save the current state to restore later if needed.
Click to reveal answer
beginner
How do you create a snapshot repository in Elasticsearch?
You create a snapshot repository by sending a PUT request to Elasticsearch with repository settings, like type (e.g., 'fs' for file system) and location path.
Click to reveal answer
beginner
What is the purpose of restoring a snapshot?
Restoring a snapshot recovers your cluster data and settings from a saved backup, useful after data loss or to move data between clusters.
Click to reveal answer
intermediate
Can you take snapshots while Elasticsearch is running and serving requests?
Yes, snapshots are taken without stopping the cluster. Elasticsearch uses a consistent view of data, so backups do not interrupt normal operations.
Click to reveal answer
intermediate
What types of repositories can be used for snapshots in Elasticsearch?
Common repository types include 'fs' (file system), 's3' (Amazon S3), 'gcs' (Google Cloud Storage), and 'azure' (Microsoft Azure Blob Storage).
Click to reveal answer
What command creates a snapshot repository in Elasticsearch?
ADELETE /_snapshot/my_backup
BGET /_snapshot/my_backup
CPOST /_snapshot/my_backup/_restore
DPUT /_snapshot/my_backup
Which repository type is used for storing snapshots on local disk?
As3
Bgcs
Cfs
Dazure
Can you restore a snapshot to a running Elasticsearch cluster?
AYes, cluster can be running
BNo, cluster must be stopped
COnly if cluster is in read-only mode
DOnly during off-peak hours
What does a snapshot include?
AIndex data and cluster metadata
BOnly index data
COnly cluster settings
DOnly node configurations
Which API call starts a snapshot creation?
APOST /_snapshot/my_backup/snapshot_1/_create
BPUT /_snapshot/my_backup/snapshot_1
CPOST /_snapshot/my_backup/snapshot_1/_restore
DGET /_snapshot/my_backup/snapshot_1
Explain the process of creating and restoring a snapshot in Elasticsearch.
Think about backup and recovery steps.
You got /4 concepts.
    Why is snapshot and restore important for Elasticsearch clusters?
    Consider real-life data safety and availability.
    You got /4 concepts.