Skip to content

Commit

Permalink
Add compression
Browse files Browse the repository at this point in the history
  • Loading branch information
Blad3Mak3r committed Jun 15, 2022
1 parent 122a7e3 commit e776948
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,8 @@ func buildCommand(destination string) *exec.Cmd {
cmdArray = append(cmdArray, "--username", "postgres")
}

cmdArray = append(cmdArray, "-Z5", "-Fc")

if config.Database.Name != "all" {
cmdArray = append(cmdArray, fmt.Sprintf("%s'", config.Database.Name), ">", destination)
} else {
Expand Down

0 comments on commit e776948

Please sign in to comment.