diff --git a/pkg/backup.go b/pkg/backup.go index d1b1ef5a..f96fa2fe 100644 --- a/pkg/backup.go +++ b/pkg/backup.go @@ -46,7 +46,6 @@ func NewCmdBackup() *cobra.Command { masterURL string kubeconfigPath string opt = mysqlOptions{ - myArgs: "--all-databases", setupOptions: restic.SetupOptions{ ScratchDir: restic.DefaultScratchDir, EnableCache: false, diff --git a/pkg/utils.go b/pkg/utils.go index 7f8f1841..2783b506 100644 --- a/pkg/utils.go +++ b/pkg/utils.go @@ -150,7 +150,7 @@ func (session sessionWrapper) waitForDBReady(waitTimeout int32) error { sh.Stdout = nil return wait.PollImmediate(5*time.Second, time.Duration(waitTimeout)*time.Second, func() (done bool, err error) { - if err := sh.Command("mysql", args...).Run(); err == nil { + if err := sh.Command(MySqlCMD, args...).Run(); err == nil { klog.Infoln("Database is accepting connection....") return true, nil }