fix: format command line args for mydumper

This commit is contained in:
Michael Reichenbach 2021-03-08 14:43:29 +01:00 committed by Silthus
parent e39abc016c
commit 52e9b1e586

View file

@ -38,11 +38,16 @@ class MariadbContainer(Container):
destination = self.backup_destination_path() destination = self.backup_destination_path()
return [ return [
"mydumper", "mydumper",
f"--user {creds['username']}", "--user",
f"--password {creds['password']}", creds['username'],
f"--host {creds['host']}", "--password",
f"--port {creds['port']}", creds['password'],
f"--outputdir {destination}", "--host",
creds['host'],
"--port",
creds['port'],
"--outputdir",
outputdir,
"--no-views", "--no-views",
"--compress", "--compress",
"--regex '^(?!(mysql\.))'" "--regex '^(?!(mysql\.))'"
@ -101,11 +106,16 @@ class MysqlContainer(Container):
destination = self.backup_destination_path() destination = self.backup_destination_path()
return [ return [
"mydumper", "mydumper",
f"--user {creds['username']}", "--user",
f"--password {creds['password']}", creds['username'],
f"--host {creds['host']}", "--password",
f"--port {creds['port']}", creds['password'],
f"--outputdir {destination}", "--host",
creds['host'],
"--port",
creds['port'],
"--outputdir",
outputdir,
"--no-views", "--no-views",
"--compress", "--compress",
"--regex '^(?!(mysql\.))'" "--regex '^(?!(mysql\.))'"