fix: format command line args for mydumper
This commit is contained in:
parent
e39abc016c
commit
52e9b1e586
|
@ -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\.))'"
|
||||
|
|
Loading…
Reference in New Issue