Skip to content

Commit

Permalink
Merge pull request #350 from sgotti/pg_basebackup_fetch_wals
Browse files Browse the repository at this point in the history
postgres: also fetch wals during pg_basebackup
  • Loading branch information
sgotti committed Sep 5, 2017
2 parents 4973929 + a51c917 commit 144d4b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/postgresql/postgresql.go
Original file line number Diff line number Diff line change
Expand Up @@ -725,7 +725,7 @@ func (p *Manager) SyncFromFollowed(followedConnParams ConnParams) error {

log.Infow("running pg_basebackup")
name := filepath.Join(p.pgBinPath, "pg_basebackup")
cmd := exec.Command(name, "-R", "-D", p.dataDir, "-d", followedConnString)
cmd := exec.Command(name, "-R", "-Xf", "-D", p.dataDir, "-d", followedConnString)
cmd.Env = append(os.Environ(), fmt.Sprintf("PGPASSFILE=%s", pgpass.Name()))
log.Debugw("execing cmd", "cmd", cmd)

Expand Down

0 comments on commit 144d4b7

Please sign in to comment.