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
1 changed files with 20 additions and 10 deletions

View File

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