databacker / mysql-backup

image to enable automated backups of mysql databases in containers
658 stars 187 forks source link

dumping databases in single files is broken #195

Open BigAndini opened 2 years ago

BigAndini commented 2 years ago

https://github.com/databacker/mysql-backup/blob/master/functions.sh#L126-L157

The DB_NAMES variable which is used when create SINGLE_DATABASE dumps is built up in the other arm of the if statement and cannot be used in line 149. This leads to some usage failure in mysqldump within the container.

deitch commented 2 years ago

I don't understand; why not? If it is two different arms of the if statement, then it is either used in one place or the other?

Can you describe an example case that would trigger a problem, and how that manifests itself?