Skip to content

Commit

Permalink
Don't set all-databases as default for args
Browse files Browse the repository at this point in the history
Signed-off-by: hmsayem <hmsayem@appscode.com>
  • Loading branch information
hmsayem committed Oct 12, 2023
1 parent e892599 commit 73686bc
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion pkg/backup.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion pkg/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 73686bc

Please sign in to comment.