Elastic search backup

Elasticsearch for my project is hosted on AWS EC2 machine. AMI backups are taken for EC2.
If the Elasticsearch server goes down, can I restore it from AMI backup and get it working?

No, you should use the snapshot and restore functionality within Elasticsearch in order to be sure you can restore your data.

Thank you for the response. On snapshot and restore page, it is mentioned taking a snapshot is the only reliable and supported way to back up a cluster.

On few links it is also mentioned AMI backups should work.

For a cluster with one node, can you please confirm if AMI backups will work or snapshot and restore is the only reliable approach.

The only reliable way for making snapshots of Elasticsearch data is using the Snapshot and Restore APIs, this is clear in the documentation.

However, if you have just a single-node cluster an AMI backup may work, but it is not recommended as it is not reliable, if you go this way just know that it may not work at all and you can lose your data.

Since you are running on AWS it is way easier to use a s3 repository for your snapshots.

1 Like

Which links?

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.