fix: format command line args for mydumper
This commit is contained in:
parent
e39abc016c
commit
52e9b1e586
1 changed files with 20 additions and 10 deletions
|
@ -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\.))'"
|
||||||
|
|
Loading…
Add table
Reference in a new issue