fix: remove regex filter from db backup
This commit is contained in:
parent
ef6ee71d2a
commit
f8ab8b9386
1 changed files with 2 additions and 18 deletions
|
@ -39,12 +39,6 @@ class MariadbContainer(Container):
|
||||||
creds = self.get_credentials()
|
creds = self.get_credentials()
|
||||||
destination = self.backup_destination_path()
|
destination = self.backup_destination_path()
|
||||||
|
|
||||||
logger.debug('log_level: %s', self.get_config('log_level'))
|
|
||||||
|
|
||||||
verbosity = 3
|
|
||||||
if self.get_config('log_level') == 'debug':
|
|
||||||
verbosity = 3
|
|
||||||
|
|
||||||
return [
|
return [
|
||||||
"mydumper",
|
"mydumper",
|
||||||
"--user",
|
"--user",
|
||||||
|
@ -59,10 +53,8 @@ class MariadbContainer(Container):
|
||||||
f"{destination}",
|
f"{destination}",
|
||||||
"--no-views",
|
"--no-views",
|
||||||
"--compress",
|
"--compress",
|
||||||
"--regex",
|
|
||||||
"'^(?!(mysql\.))'",
|
|
||||||
"--verbose",
|
"--verbose",
|
||||||
f"{verbosity}"
|
"3"
|
||||||
]
|
]
|
||||||
|
|
||||||
def backup(self):
|
def backup(self):
|
||||||
|
@ -123,12 +115,6 @@ class MysqlContainer(Container):
|
||||||
creds = self.get_credentials()
|
creds = self.get_credentials()
|
||||||
destination = self.backup_destination_path()
|
destination = self.backup_destination_path()
|
||||||
|
|
||||||
logger.debug('log_level: %s', self.get_config('log_level'))
|
|
||||||
|
|
||||||
verbosity = 3
|
|
||||||
if self.get_config('log_level') == 'debug':
|
|
||||||
verbosity = 3
|
|
||||||
|
|
||||||
return [
|
return [
|
||||||
"mydumper",
|
"mydumper",
|
||||||
"--user",
|
"--user",
|
||||||
|
@ -143,10 +129,8 @@ class MysqlContainer(Container):
|
||||||
f"{destination}",
|
f"{destination}",
|
||||||
"--no-views",
|
"--no-views",
|
||||||
"--compress",
|
"--compress",
|
||||||
"--regex",
|
|
||||||
"'^(?!(mysql\.))'",
|
|
||||||
"--verbose",
|
"--verbose",
|
||||||
f"{verbosity}"
|
"3"
|
||||||
]
|
]
|
||||||
|
|
||||||
def backup(self):
|
def backup(self):
|
||||||
|
|
Loading…
Add table
Reference in a new issue