elasticsearchbackupbackup-strategies

Is there any continuously backup method for elasticsearch?


I use snapshot method to backup my elasticsearch nodes, it works as follow: PUT /_snapshot/my_backup/snapshot_1?wait_for_completion=true but after new data added to elasticsearch, it's not contained in snapshot, so we need to run it periodically, but there will be a data loss if something goes wrong between 2 snapshots, is there anyway to handle it? is there any continuously backup method for elasticsearch?


Solution

  • If you want to have a "backup" of some sort that is in-sync with the data in the cluster, consider building two clusters. Whatever indexing, updating, deleting operations the "main" cluster has, you need to mirror those operations on the "backup" cluster as well. There is no other way.