简体   繁体   English

azure aks将在k8集群中运行的mongodb备份到本地文件或azure存储中

[英]azure aks take backup of mongodb running in k8 cluster to local file or azure storage

problem statement 问题陈述
we want to take backup of mongodb running in k8s cluster in azure and export it in some other mongodb running in differnt k8s cluster. 我们想备份在Azure中在k8s集群中运行的mongodb的备份,并将其导出到在不同k8s集群中运行的其他mongodb中。 does any one provide pointers related to this 有没有人提供与此相关的指针

One option is to create a Kubernetes Cronjob with Azure file share as the persistent volume. 一种选择是使用Kubernetes Cronjob创建一个Azure文件共享作为持久卷。 In the cronjob you can run a mongodump command. 在cronjob中,您可以运行mongodump命令。

You can also use MGOB which can help to configure scheduled backups as well. 您也可以使用MGOB ,它也可以帮助配置计划的备份。

If you have multiple MongoDB instances on kubernetes, I would recommend you to try MGOB. 如果您在kubernetes上有多个MongoDB实例,我建议您尝试MGOB。 They would greatly simplify the setup. 它们将大大简化设置。

If you need a solution which you need to implement, you can choose Kubernetes Cronjob. 如果您需要实施的解决方案,则可以选择Kubernetes Cronjob。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM