fradelg / docker-mysql-cron-backup

Docker image to backup all your databases periodically
Apache License 2.0
305 stars 111 forks source link

Fixes missing USE statement in SQL dump #6

Closed bemeyert closed 7 years ago

bemeyert commented 7 years ago

This commit adds the additional --databases option to the mysqldump command. This adds a USE database statement to the beginning of the SQL dump. Without this one has to provide the database name at restore.