Deprecated mysql name when using mariadb #727
Labels
No labels
blocked
breaking
bug
data loss
design finalized
good first issue
new feature area
question / support
security
waiting for response
No milestone
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
borgmatic-collective/borgmatic#727
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What I'm trying to do and why
The commit
github.com/MariaDB/server@b30b040b73deprecates the usage ofmysqlandmysql-*when using mariadb database.When using a borgmatic configuration with
mysql_databases, the followed message is displayed:Steps to reproduce
Run borgbackup to backup an mariadb database using
mysql_databasesoptions. The mariadb server and CLI should be at least at version 11.0.2.Actual behavior
Expected behavior
No warning is displayed and borgbackup use mariadb instead of mysql.
Other notes / implementation ideas
As you may want to support both backend, maybe a new option in
mysql_databasescan be use to select either mysql or mariadb. Another implementation may be copymysql_databasesto amariadb_databases.borgmatic version
1.8.0
borgmatic installation method
archlinux package
Borg version
borg 1.2.4
Python version
Python 3.11.3
Database version (if applicable)
mariadb from 11.0.2-MariaDB, client 15.2 for Linux (x86_64) using readline 5.1
Operating system and version
archlinux
Thank you for bringing this to my attention! My inclination here is to do your second suggestion (a separate
mariadb_databases:) for a couple reasons:mysql_databases:is a list! So it would require a more involved schema change to be able to stuff an option in there to select MySQL/MariaDB.I just implemented a new
mariadb_databases:hook in main and it'll be part of the next release! Be aware though that any existing backups made with themysql_databases:hook are only restorable with amysql_databases:configuration. Thanks for the suggestion!This has been released in borgmatic 1.8.2!