且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

在另一台机器上还原特定的AWS Elasticsearch数据库快照备份

更新时间:2023-02-02 17:02:07

您首先需要在其他ES群集上创建相同的S3存储库(与在源群集上最初创建存储库时完全相同的命令)>

You first need to create the same S3 repo on your other ES cluster (the exact same command as when you initially created the repository on your source cluster)

PUT _snapshot/repository
{
  "type": "s3",
  "settings": {
    "bucket": "your_bucket"
  }
}

然后您可以使用以下方法非常简单地还原任何快照:

And then you can restore any snapshot very simply with:

POST /_snapshot/repository/2018-04-08t04-43-08.c5da6a35-8158-4799-a58d-0baf0a432275/_restore