Backup fails: mysqldump deprecated #5089

Closed
opened 2026-02-05 09:39:17 +03:00 by OVERLORD · 4 comments
Owner

Originally created by @Backroads4Me on GitHub (Dec 25, 2024).

Describe the Bug

Use the system cli to execute a backup. I have historically done this with a cron job. For example:
/app/www/bookstack-system-cli backup /backups/bookstack.zip

Now the process fails due to mysqldump being deprecated on maria-db for mariadb-dump

Error received:
Checking system requirements...
Dumping the database via mysqldump...

An error occurred when attempting to run a command:

Failed mysqldump with errors:
/usr/bin/mysqldump: Deprecated program name. It will be removed in a future release, use '/usr/bin/mariadb-dump' instead

Steps to Reproduce

Use the system cli to execute a backup.
For example: /app/www/bookstack-system-cli backup /backups/bookstack.zip

Expected Behaviour

bookstack.zip created

Screenshots or Additional Context

No response

Browser Details

No response

Exact BookStack Version

v24.12

Originally created by @Backroads4Me on GitHub (Dec 25, 2024). ### Describe the Bug Use the system cli to execute a backup. I have historically done this with a cron job. For example: /app/www/bookstack-system-cli backup /backups/bookstack.zip Now the process fails due to mysqldump being deprecated on maria-db for mariadb-dump Error received: Checking system requirements... Dumping the database via mysqldump... An error occurred when attempting to run a command: Failed mysqldump with errors: /usr/bin/mysqldump: Deprecated program name. It will be removed in a future release, use '/usr/bin/mariadb-dump' instead ### Steps to Reproduce Use the system cli to execute a backup. For example: /app/www/bookstack-system-cli backup /backups/bookstack.zip ### Expected Behaviour bookstack.zip created ### Screenshots or Additional Context _No response_ ### Browser Details _No response_ ### Exact BookStack Version v24.12
OVERLORD added the 🐛 Bug label 2026-02-05 09:39:17 +03:00
Author
Owner

@ssddanbrown commented on GitHub (Dec 26, 2024):

Hi @Backroads4Me, Thanks for reporting.
I assume this is within the linuxserver container based upon the commands?

We'll probably need to add specific checks for mariadb-dump and use that instead as a higher priority default.

@ssddanbrown commented on GitHub (Dec 26, 2024): Hi @Backroads4Me, Thanks for reporting. I assume this is within the linuxserver container based upon the commands? We'll probably need to add specific checks for `mariadb-dump` and use that instead as a higher priority default.
Author
Owner

@Backroads4Me commented on GitHub (Dec 26, 2024):

That's correct, and it uses image: lscr.io/linuxserver/mariadb
My full uses case is using image: offen/docker-volume-backup to automatically backup Bookstack. Bookstack has historically ran the backup script daily and dumped the zip file to a bound volume then docker-volume-backup exports the zip file to Amazon S3.

@Backroads4Me commented on GitHub (Dec 26, 2024): That's correct, and it uses image: lscr.io/linuxserver/mariadb My full uses case is using image: offen/docker-volume-backup to automatically backup Bookstack. Bookstack has historically ran the backup script daily and dumped the zip file to a bound volume then docker-volume-backup exports the zip file to Amazon S3.
Author
Owner

@lennart-m commented on GitHub (Mar 2, 2025):

Same issue for me (using linuxserver.io). Are there plans to fix this? I haven't been able to backup my instance since december.

Thanks a lot!

@lennart-m commented on GitHub (Mar 2, 2025): Same issue for me (using linuxserver.io). Are there plans to fix this? I haven't been able to backup my instance since december. Thanks a lot!
Author
Owner

@ssddanbrown commented on GitHub (Mar 12, 2025):

I have now updated the CLI to check for mariadb-dump before defaulting to mysqldump.
The updated CLI will be part of the next patch release, or otherwise can be downloaded here.

Note: Environments using mariadb clients (including mariadb-dump) should also use mariadb as their database server. During testing I've found compatibility is starting to get trickier as those database diverge.

@ssddanbrown commented on GitHub (Mar 12, 2025): I have now updated the CLI to check for mariadb-dump before defaulting to mysqldump. The updated CLI will be part of the next patch release, or otherwise [can be downloaded here](https://github.com/BookStackApp/BookStack/raw/94b1cffa2d57141185d42965c8fa9f2da07f30ae/bookstack-system-cli). Note: Environments using mariadb clients (including mariadb-dump) should also use mariadb as their database server. During testing I've found compatibility is starting to get trickier as those database diverge.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#5089