Skip to content

Commit

Permalink
Don't dump priviliges as they cannot be restored
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperSandro2000 committed Jan 4, 2024
1 parent 6064d6c commit 2adea7a
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", "--create", "--if-exist", 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 2adea7a

Please sign in to comment.