Skip to content

I can't restore the SQL dump, but the other files are being restored. #71

@rrakso

Description

@rrakso

Thank you for the plugin and for maintaining it 💖!

After digging in, I found that I was unable to restore the contents of my backup. I discovered that the command being executed was /usr/bin/mysql --user='kimaiuser' --password='kimaipassword' --host='sqldb' --port='3306' 'kimai' \< /opt/kimai/var/easy_backup/2025-04-08_164005/database_dump.sql and should be /usr/bin/mysql --user='kimaiuser' --password='kimaipassword' --host='sqldb' --port='3306' 'kimai' < /opt/kimai/var/easy_backup/2025-04-08_164005/database_dump.sql (The output of the wrong command was just a help text of mysql, not an error message. This is why everything looked fine in the logs. 🥹)

The change is in the character < being escaped to the \<.

I've also found that I can temporarily remove escapeshellcmd from Service/EasyBackupService.php, and it started working!

P.S.
Is it possible to add a spinner or pop-up when the restore button is clicked? The harder one would be the feature of allowing uploads of backups.

Again! Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions