solidnerd/docker-bookstack

Missing dependency for bookstack-system-cli

richie-tt opened this issue · 2 comments

Hello,

I wanted to create a full backup of my BookStack using a dedicated bookstack-system-cli application, but there is missing installation of mysqldump.

www-data@bookstack-c884f59d5-8ktj9:~/bookstack$ ./bookstack-system-cli backup 
WARNING: This CLI is in early alpha testing.
There's a high chance of running into bugs, and the CLI API is subject to change.

Checking system requirements...

Warning: ZipArchive::addFile(): No such file or directory in phar:///var/www/bookstack/bookstack-system-cli/src/Commands/BackupCommand.php on line 55
Dumping the database via mysqldump...

An error occurred when attempting to run a command:

Could not locate "mysqldump" program.

Can you please add mysqldump as part of the docker image?

Environment:

  • Kubernetes: 1.25
  • Bookstack: 23.8.3

Sounds sensible enough to me, feel free to open a PR and I'll review. That said, you should probably know that the CLI won't back up your environment if you're using Kubernetes env vars (as you should be).

You might find it easier to create Kubernetes cron jobs to back up database (via a dump) and your media volume (or, even easier, use S3 or equivalent for media storage).

stale commented

This issue has been automatically marked as stale because it has not had any activity for the last 30 days. It will be closed if no further activity occurs during the next 7 days. Thank you for your contributions.