Fix MariaDB target dir for backup syntax

Change-Id: I0a8b78696f822d176caf6136c0d71211dee16685
This commit is contained in:
Rafael Weingärtner 2024-11-12 08:50:16 -03:00
parent 1da2376f5a
commit 93d67678dc

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)