There are several reasons when you need to use back-up and restore.
You need to migrate your DB from the container to the stand-alone version (which is a must for production with big amount of tests).
You care about your data and do not want to lose the data.
We strongly recommend using standalone database deployment, i.e. the database server needs to run on a dedicated VM or bare metal server (not in a container/pod), otherwise most likely you are going to face the performance issues.
Backups and restoration of data from backups
How to make the backup of the database for docker-compose deployment
Before you start the backup process or restore process, please stop all the containers which do not have -db_ in their names.