fradelg / docker-mysql-cron-backup

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

restore with command wont work with Hyphen in database name #49

Closed SamLoys closed 3 years ago

SamLoys commented 3 years ago

Hello,

I tried to do a backup with the command docker container exec <your_mysql_backup_container_name> /restore.sh /backup/<your_sql_backup_gz_file> but I get the message that the database is unkown. This is probably because the database contained a - in the name. Databases that do not make use of a - work fine. Do you maybe have a solution for this or should I recreate all my databases without a hyphen in the name? image

fradelg commented 3 years ago

Try using the image tagged with support-hyphen-in-db-name. If it works, I will merge the change in master

SamLoys commented 3 years ago

Amazing thanks! it seems to work perfectly now image