Comment on How do you manage you DB in a docker environment?
Mertn33@lemmy.world 4 days agoThe last thing I want is database corruption. That is why I “docker compose down” before I make a backup then “docker compose up” when the backup is complete. Is that not good enough? Do I have to do something else?
Yes that’s good enough! Sorry to clarify I leave mine running since a dump can recover if it gets corrupt.
Basically my backup contains the database and the SQL dump (or equivalent) - that way I don’t need to shutdown the service.