mxgross / EasyBackupBundle

Kimai 2 Plugin for easier backups
MIT License
24 stars 6 forks source link

Problem with special characters in DB password? #61

Closed webaff closed 10 months ago

webaff commented 11 months ago

Hi,

I get the following error when creating a backup: ERROR: sh: -c: line 0: syntax error near unexpected token('`

I suspect this to happen due to the "(" character in the database password. Can anyone confirm/fix this?

Thx

mxgross commented 10 months ago

Hi @webaff , can you please pull the main branch and try it again.

I wrapped the password with an escapeshellarg command and hope it will help. In my case everythin works like before, but I did not yet test it with a mysql password containing a "(".

webaff commented 10 months ago

Hi @mxgross , it's working with "(" in the password now! Great job, thanks.