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
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.