英文:
how to get backup for sharded mongodb in kubernetes
问题
我尝试通过多种方式来备份分片的MongoDB备份,但在某些方法中,我成功备份了,但无法恢复到平台上。
我在Kubernetes和其他操作中使用GCP。我正在使用Bitnami操作员来管理我的分片MongoDB,如果有任何解决方案,请在这里发布。
英文:
I was trying to get backup for sharded mongodb backup via so many ways but I couldn't able to do it in some approaches I could able to take backup sucessfully but restoring was not happening and platform.
I use for my kubernetes and other operations are GCP. And I am using bitnami operator for my sharded mongodb and any solutions are there please post here.
答案1
得分: 1
你有多种选项来进行备份,但由于您没有提到您尝试了什么以及如何努力回答,因此很难提供详细建议。
您可以使用普通的CLI mongodump或mongoexport选项来进行备份,并在需要时用于重启。但根据数据的大小,可能难以管理和计划恢复。
如果您需要重启到另一个Kubernetes集群,可以利用工具**Velero来获取磁盘快照,并在运行在GKE的另一个K8s**集群上进行恢复。
可以使用第三方 CLI或操作员来备份并上传到存储桶。
英文:
You have multiple options to take backup but as you have not mentioned how and what you tried hard to answer.
You can use the normal CLI mongodump or mongoexport option to take a backup and use it for restart. But based on the size of the data it would be difficult to manage and plan to restore it.
If you need to restart to another Kubernetes could leverage the Tool Velero and take a Disk snapshot and restore to another K8s cluster if running in GKE.
Use third-party CLI or Operator to take a backup & upload to Bucket.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论