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

1/22/2019

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. does any one provide pointers related to this

-- Ganesh Pol
azure
kubernetes
mongodb

1 Answer

1/23/2019

One option is to create a Kubernetes Cronjob with Azure file share as the persistent volume. In the cronjob you can run a mongodump command.

You can also use MGOB which can help to configure scheduled backups as well.

If you have multiple MongoDB instances on kubernetes, I would recommend you to try MGOB. They would greatly simplify the setup.

If you need a solution which you need to implement, you can choose Kubernetes Cronjob.

-- jakaruna-msft
Source: StackOverflow