Skip to content

Commit

Permalink
Add --ignore-table=mysql.user to mysql-args
Browse files Browse the repository at this point in the history
Signed-off-by: Md. Ishtiaq Islam <[email protected]>
  • Loading branch information
ishtiaqhimel committed May 21, 2024
1 parent 7ccbafa commit 0392cb0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/backup.go
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,7 @@ func (opt *mysqlOptions) backupMySQL(targetRef api_v1beta1.TargetRef) (*restic.B
}

session.setUserArgs(opt.myArgs)
session.cmd.Args = append(session.cmd.Args, "--ignore-table=mysql.user")

// add backup command in the pipeline
opt.backupOptions.StdinPipeCommands = append(opt.backupOptions.StdinPipeCommands, *session.cmd)
Expand Down

0 comments on commit 0392cb0

Please sign in to comment.