elasticsearch+kibana快照实现迁移及恢复
1. 全部索引存储快照及恢复
1.1 全部索引存储快照
1.1.2 全部索引注册快照存储库
1 | PUT _snapshot/old_k8s-prod-info |
1.1.2 快照全部索引
1 | PUT _snapshot/old_k8s-prod-info/backup_all?wait_for_completion=true |
1.1.3 查看快照进度
1 | GET _snapshot/old_k8s-prod-info/backup_all/_status |
1.2 恢复
1.2.1 注册快照存储库
1 | PUT _snapshot/old_k8s-prod-info |
1.2.2 恢复全部索引
1 | POST _snapshot/old_k8s-prod-info/backup_all/_restore |
1.2.3 查看快照恢复进度
1 | GET _cat/recovery?v |
2. 指定索引快照及恢复
2.1 指定索引快照
2.1.1 指定索引注册快照存储库
1 | PUT _snapshot/old_k8s-prod-info |
2.1.2 指定索引存储快照
1 | PUT _snapshot/old_k8s-prod-info/k8s-prod-info-2023.11.19?wait_for_completion=true |
2.1.3 查看指定索引快照进度
1 | GET _snapshot/old_k8s-prod-info/k8s-prod-info-2023.11.19/_status |
2.2 恢复
2.2.1 指定索引注册快照存储库
1 | PUT _snapshot/old_k8s-prod-info |
2.2.2 恢复指定索引
1 | POST _snapshot/old_k8s-prod-info/k8s-prod-info-2023.11.19/_restore |
2.2.3 查看快照恢复进度
1 | GET _cat/recovery?v |
本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来自 悩姜!