Backup live mariadb / mongodb running in docker container

Hi,

I am running Maria DB (mysql) and Mongo DB in docker containers, for which I keep the data in the local filesystem which are passed to the containers as volumes.

Looking at some posts, I learned that duplicati might be able to do freeze (snapshot) the filesystem and run the backup without stopping the databases (services).

Does this also work on my Debian running the databases in Docker?

Thanks for your help & Warm regards,
Markus

The only right way to back up a database is to use the dump utility provided by the database and then backing up the resulting dump.

Any file level backup of your database won’t handle transaction or internal database logic properly and you’ll risk losing data or winding up in an inconsistent state on restore.