mirror of
https://kolaente.dev/konrad/docker-db-backup.git
synced 2026-01-10 21:20:08 +01:00
feat(mysql): dump everything
This commit is contained in:
@@ -41,7 +41,7 @@ func (m *MysqlDumper) buildDumpArgs() []string {
|
|||||||
|
|
||||||
host := m.Container.NetworkSettings.DefaultNetworkSettings.IPAddress
|
host := m.Container.NetworkSettings.DefaultNetworkSettings.IPAddress
|
||||||
|
|
||||||
args := []string{"--lock-tables=0", "--dump-date", "-u", user}
|
args := []string{"--lock-tables=0", "--dump-date", "--single-transaction", "--source-data=2", "--routines", "--triggers", "--events", "-u", user}
|
||||||
|
|
||||||
if pw != "" {
|
if pw != "" {
|
||||||
args = append(args, "-p"+pw)
|
args = append(args, "-p"+pw)
|
||||||
|
|||||||
Reference in New Issue
Block a user