如何在Kubernetes中为分片的MongoDB获取备份。

huangapple go评论71阅读模式
英文:

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 mongodumpmongoexport选项来进行备份,并在需要时用于重启。但根据数据的大小,可能难以管理和计划恢复

如果您需要重启到另一个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.

huangapple
  • 本文由 发表于 2023年7月7日 01:48:44
  • 转载请务必保留本文链接:https://go.coder-hub.com/76631376.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定