Backup database

I’m reading : Backup — Nextcloud latest Administration Manual latest documentation

It suggest to use mysqldump for backup but mariadb has it’s own backup tool mariadb-dump (Backup and Restore Overview | MariaDB Documentation).

Is the help page in error or should I try to install mysqldump on my mariadb database server to create backups?

Let’s say it’s out of date or incomplete :wink:

Starting with MariaDB 10.5, the dump tool was renamed to mariadb-dump. However, the mysqldump command will likely still work, as it is should still be present as a symlink to mariadb-dump in most Linux distributions. See: https://mariadb.com/docs/server/clients-and-utilities/legacy-clients-and-utilities/mysqldump

Btw, the same applies to the mysql command, which was renamed to mariadb starting with MariaDB 10.5: mysql Command-Line Client | MariaDB Documentation

You probably don’t need to install anything unless neither of the commands work.

On Debian/Ubuntu, mariadb-dump/mysqldump is part of the mariadb-client package, which is a dependency of the mariadb-server package. So unless you deliberately uninstalled it, either of the commands should work out of the box.

I’m not sure about other distributions, but I assume it’s similar there.

2 Likes

is there any chance someone will update the documentation?

Feel free to click the ‘Edit on GitHub’ link at the top right corner of the relevant documentation sections and open a pull request. :wink:

But to be honest, I don’t see any real need to update the documentation. The mysql commands work with both MySQL and MariaDB, whereas the mariadb commands only work with MariaDB. So anywhere the docs mention a mysql command, you’d have to either duplicate the instructions or at least mention both commands, which would be quite a bit of effort with no real benefit, in my opinion.

This topic was automatically closed 8 days after the last reply. New replies are no longer allowed.