Skip to content

Commit

Permalink
Merge pull request #7359 from planetscale/ds-xb-path
Browse files Browse the repository at this point in the history
use provided xtrabackup_root_path to find xbstream
  • Loading branch information
deepthi authored Jan 25, 2021
2 parents bc44b1f + 926ddff commit 0ca4f99
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions go/vt/mysqlctl/xtrabackupengine.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ type XtrabackupEngine struct {

var (
// path where backup engine program is located
xtrabackupEnginePath = flag.String("xtrabackup_root_path", "", "directory location of the xtrabackup executable, e.g., /usr/bin")
xtrabackupEnginePath = flag.String("xtrabackup_root_path", "", "directory location of the xtrabackup and xbstream executables, e.g., /usr/bin")
// flags to pass through to backup phase
xtrabackupBackupFlags = flag.String("xtrabackup_backup_flags", "", "flags to pass to backup command. These should be space separated and will be added to the end of the command")
// flags to pass through to prepare phase of restore
Expand Down Expand Up @@ -580,7 +580,7 @@ func (be *XtrabackupEngine) extractFiles(ctx context.Context, logger logutil.Log

case xbstream:
// now extract the files by running xbstream
xbstreamProgram := xbstream
xbstreamProgram := path.Join(*xtrabackupEnginePath, xbstream)
flagsToExec := []string{"-C", tempDir, "-xv"}
if *xbstreamRestoreFlags != "" {
flagsToExec = append(flagsToExec, strings.Fields(*xbstreamRestoreFlags)...)
Expand Down

0 comments on commit 0ca4f99

Please sign in to comment.