Merge "Fix MariaDB target dir for backup syntax"

This commit is contained in:
Zuul 2024-11-14 10:21:10 +00:00 committed by Gerrit Code Review
commit a7e4b1f69b

View File

@ -26,7 +26,7 @@ CONF = cfg.CONF
class MariaBackup(mysql_base.MySQLBaseRunner):
"""Implementation of Backup and Restore using mariabackup."""
restore_cmd = ('mbstream -x -C %(restore_location)s')
prepare_cmd = 'mariabackup --prepare --target--dir=%(restore_location)s'
prepare_cmd = 'mariabackup --prepare --target-dir=%(restore_location)s'
def __init__(self, *args, **kwargs):
super(MariaBackup, self).__init__(*args, **kwargs)