I created this little docker to keep a backup of my SQL database for Kodi.
It starts from a phusion base image, installs mariaDB and then launches a cron job.
It requires a location for the backed-up files, cron parameters, IP address of the SQL server, the pushbullet token if you want notifications and the number of backup files to keep. All of these are environment variables and can be input after selecting Advanced view.
I'm using it for some time now with no issues.
Link to the docker-template is in my signature.
EDIT 1: Right now only one backup a day is supported due to the naming convention of the backup file. But then I was not expecting to need more than one backup a day.
EDIT 2: Obviously this docker needs more error proofing - I would like to change it into beta until all the fixes are in place
EDIT 3: Added variable for userid, implementing the password is giving me a little headache. Pushbullet notification modified for successful backup and to show error code if the backup command failed.
EDIT4: In order to restore a backed-up file use:
gunzip < MyDatabase_DATE.sql.gz | mysql -uroot -h 192.168.99.99