如何在elasticsearch中重命名快照存储库?

时间:2015-10-20 17:28:54

标签: elasticsearch

我已经注册了这样的快照存储库:

PUT /_snapshot/es152_prod_backup
   {
     "type": "fs",
     "settings": {
     "location": "/var/es/backup",
     "compress": true
     }
   }

现在我想将它重命名为更通用的东西,如:

  

myapp_prod_backup

我该怎么办?

谢谢,

CHANDAN

1 个答案:

答案 0 :(得分:2)

添加新存储库:

   PUT /_snapshot/myapp_prod_backup
   {
     "type": "fs",
     "settings": {
     "location": "/var/es/backup",
     "compress": true
     }
   }

并删除旧的

   DELETE /_snapshot/myapp_prod_backup