栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 面试经验 > 面试问答

无法在Elasticsearch中注册快照存储库

面试问答 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

无法在Elasticsearch中注册快照存储库

  1. 首先创建一个备份文件夹(通常该文件夹创建用户主文件夹)

    mkdir ~/backup
  2. 授予该文件夹的权限

    chmod 777 ~/backup
  3. 创建一个存储库(存储库代表您的路径)

    curl -XPUT http://xx.xx.xx.xx:9200/_snapshot/es_snap -d

    ’{“type”:”fs”,”settings”:{“location”:”home/user/backup”
    ,”compress”:true}}’

  4. 快照

    curl -XPUT "http://xx.xx.xx.xx:9200/_snapshot/en_snap/snapshot_1" -d

    ’{“indices”:[“index1”,”index2”,”index3”],”ignore_unavailable”:true,
    “include_global_state”: false,}’

  5. 恢复

    curl -XPOST "http://xx.xx.xx.xx:9200/_snapshot/es_snap/snapshot_1/_restore" -d

    ’{“indices”:[“index1”,”index2”],”ignore_unavailable”:true,
    “include_global_state”: false}’



转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/374916.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号