tobybatch / kimai2

Docker containers for the kimai2 web application including docker-compose and kubernetes/helm deployment.
MIT License
183 stars 97 forks source link

[FEATURE] Support for db backups #386

Closed 3isenHeiM closed 2 years ago

3isenHeiM commented 2 years ago

Is your feature request related to a problem? Please describe. When installing Kimai with Docker, the image does not come with the tools required to take backups of the DB from the container itself.

Using backup plugins (like https://www.kimai.org/store/maximiliangross-easy-backup-bundle.html) is thus not possible since the kimai docker does not have the mysql and mysqldump binaries.

Describe the solution you'd like Integrate these utilities in the kimai base docker image so that the application can allow backups afterwards.

Describe alternatives you've considered Installing the binaires after the image building, but then at every pull it'll be reset. .

tobybatch commented 2 years ago

The database is not included in this repo at all. Those tools should exist in the Maria/postfix/mysql container. It's not in the PHP/kimai container's scope to handle SQL commands.

For example we don't mandate mysql. You could connect this image to a postfix db I'd you wanted.

kevinpapst commented 2 years ago

Besides the fact that Kimai only supports MySQL: it is a bit strange inversion of responsibility if the application should backup itself.

You might want to setup a cron command in the DB container to dump the mysql database into a shared directory/volume.

3isenHeiM commented 2 years ago

I definitely will, thanks for the hint.