mirror of
https://github.com/ZettaIO/restic-compose-backup.git
synced 2025-12-13 17:34:57 +00:00
fix: format command line args for mydumper
This commit is contained in:
committed by
Silthus
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\.))'"
|
||||
|
||||
Reference in New Issue
Block a user