Dear friends,
I migrated my microservice using MongoDB as its permanence layer to a Docker Compose dockerized solution.
The architecture has an official MongoDB 6 container running which is using a Volume (not a bind mount to the host filesystem as before).
I am reading several approaches to backing up daily but am unsure of the best practice to follow.
Ideally I want to setup a daily cron, stop the app and/or freeze the DB, perform a mongodump on a mounted bind directory, then resume normal operations, all of which possibly with a log for failures.
Any suggestions or better approaches? thanks a lot in advance
PS What I like about archive dump is the ease of transferring them to another host possibily running a non dockerized mongodb and restoring there