Skip to content

Commit

Permalink
revert removal of --create option from pg_dump
Browse files Browse the repository at this point in the history
  • Loading branch information
majewsky committed Jan 5, 2024
1 parent 21fe2a2 commit 96eb3b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/backup/backup.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ func Create(cfg *core.Configuration, reason string) (nowTime time.Time, returned
"--host", cfg.PgHostname,
"--username", cfg.PgUsername, //NOTE: PGPASSWORD comes via inherited env variable
"--compress", "5",
"--clean", "--if-exist", "--no-privileges", databaseName)
"--clean", "--create", "--if-exist", "--no-privileges", databaseName)
logg.Info(">> " + shellquote.Join(cmd.Args...))
cmd.Stdout = pipeWriter
cmd.Stderr = os.Stderr
Expand Down

0 comments on commit 96eb3b3

Please sign in to comment.