From 71b7a5db126c77b3951804af2747401b5dfe41fe Mon Sep 17 00:00:00 2001 From: Armando Couto Date: Fri, 24 Jan 2020 22:47:05 -0300 Subject: [PATCH 01/16] =?UTF-8?q?Corrige=20a=20vers=C3=A3o=20da=20dependen?= =?UTF-8?q?cia?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 1 + barkup.coverprofile | 42 ------------------------------------------ s3.go | 4 ++-- s3_test.go | 2 +- 4 files changed, 4 insertions(+), 45 deletions(-) delete mode 100644 barkup.coverprofile diff --git a/.gitignore b/.gitignore index 46aa263..edd2153 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ .DS_Store *.out test +.idea diff --git a/barkup.coverprofile b/barkup.coverprofile deleted file mode 100644 index 9dba511..0000000 --- a/barkup.coverprofile +++ /dev/null @@ -1,42 +0,0 @@ -mode: count -github.com/keighl/barkup/barkup.go:22.31,24.2 1 1 -github.com/keighl/barkup/barkup.go:26.44,27.16 1 8 -github.com/keighl/barkup/barkup.go:33.2,33.12 1 3 -github.com/keighl/barkup/barkup.go:27.16,32.3 1 5 -github.com/keighl/barkup/barkup.go:56.66,57.18 1 3 -github.com/keighl/barkup/barkup.go:62.2,63.21 2 2 -github.com/keighl/barkup/barkup.go:67.2,68.25 2 1 -github.com/keighl/barkup/barkup.go:57.18,60.3 2 1 -github.com/keighl/barkup/barkup.go:63.21,65.3 1 1 -github.com/keighl/barkup/barkup.go:72.41,75.2 2 3 -github.com/keighl/barkup/mysql.go:35.39,42.16 5 3 -github.com/keighl/barkup/mysql.go:47.2,49.16 3 2 -github.com/keighl/barkup/mysql.go:53.2,55.15 2 1 -github.com/keighl/barkup/mysql.go:42.16,45.3 2 1 -github.com/keighl/barkup/mysql.go:49.16,52.3 2 1 -github.com/keighl/barkup/mysql.go:58.39,66.2 7 4 -github.com/keighl/barkup/postgres.go:30.42,35.16 5 2 -github.com/keighl/barkup/postgres.go:38.2,38.15 1 2 -github.com/keighl/barkup/postgres.go:35.16,37.3 1 1 -github.com/keighl/barkup/postgres.go:41.42,44.16 2 8 -github.com/keighl/barkup/postgres.go:48.2,48.18 1 8 -github.com/keighl/barkup/postgres.go:52.2,52.18 1 8 -github.com/keighl/barkup/postgres.go:56.2,56.22 1 8 -github.com/keighl/barkup/postgres.go:60.2,60.16 1 8 -github.com/keighl/barkup/postgres.go:44.16,46.3 1 5 -github.com/keighl/barkup/postgres.go:48.18,50.3 1 3 -github.com/keighl/barkup/postgres.go:52.18,54.3 1 4 -github.com/keighl/barkup/postgres.go:56.22,58.3 1 6 -github.com/keighl/barkup/rethinkdb.go:31.43,36.16 5 2 -github.com/keighl/barkup/rethinkdb.go:39.2,39.15 1 2 -github.com/keighl/barkup/rethinkdb.go:36.16,38.3 1 1 -github.com/keighl/barkup/rethinkdb.go:42.43,45.35 3 3 -github.com/keighl/barkup/rethinkdb.go:48.2,48.16 1 3 -github.com/keighl/barkup/rethinkdb.go:45.35,47.3 1 2 -github.com/keighl/barkup/s3.go:31.67,33.25 1 3 -github.com/keighl/barkup/s3.go:37.2,38.16 2 2 -github.com/keighl/barkup/s3.go:41.2,45.16 4 2 -github.com/keighl/barkup/s3.go:49.2,60.25 6 2 -github.com/keighl/barkup/s3.go:33.25,35.3 1 1 -github.com/keighl/barkup/s3.go:38.16,40.3 1 0 -github.com/keighl/barkup/s3.go:45.16,47.3 1 0 diff --git a/s3.go b/s3.go index 081d053..07b7abd 100644 --- a/s3.go +++ b/s3.go @@ -2,8 +2,8 @@ package barkup import ( "bufio" - "launchpad.net/goamz/aws" - "launchpad.net/goamz/s3" + "gopkg.in/amz.v1/aws" + "gopkg.in/amz.v1/s3" "os" ) diff --git a/s3_test.go b/s3_test.go index 43f4c0e..0f647a7 100644 --- a/s3_test.go +++ b/s3_test.go @@ -1,7 +1,7 @@ package barkup import ( - "launchpad.net/goamz/aws" + "gopkg.in/amz.v1/aws" "os" "testing" ) From aeecc690cb3b432f93024453b1de88d8a7e74c3c Mon Sep 17 00:00:00 2001 From: Armando Couto Date: Fri, 24 Jan 2020 23:06:28 -0300 Subject: [PATCH 02/16] =?UTF-8?q?Corrige=20a=20vers=C3=A3o=20da=20dependen?= =?UTF-8?q?cia?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- postgres.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/postgres.go b/postgres.go index 46b4a08..05a2523 100644 --- a/postgres.go +++ b/postgres.go @@ -8,7 +8,7 @@ import ( var ( // PGDumpCmd is the path to the `pg_dump` executable - PGDumpCmd = "pg_dump" + PGDumpCmd = "/Library/PostgreSQL/11/bin/pg_dump" ) // Postgres is an `Exporter` interface that backs up a Postgres database via the `pg_dump` command From 2c85f368609e92704ec1bdfc6fcb2a6d7434ed85 Mon Sep 17 00:00:00 2001 From: Armando Couto Date: Fri, 24 Jan 2020 23:14:20 -0300 Subject: [PATCH 03/16] Aplica melhoria --- postgres.go | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/postgres.go b/postgres.go index 05a2523..7fb8034 100644 --- a/postgres.go +++ b/postgres.go @@ -6,11 +6,6 @@ import ( "time" ) -var ( - // PGDumpCmd is the path to the `pg_dump` executable - PGDumpCmd = "/Library/PostgreSQL/11/bin/pg_dump" -) - // Postgres is an `Exporter` interface that backs up a Postgres database via the `pg_dump` command type Postgres struct { // DB Host (e.g. 127.0.0.1) @@ -21,6 +16,8 @@ type Postgres struct { DB string // Connection Username Username string + // PGDumpCmd is the path to the `pg_dump` executable + PGDumpCmd string "pg_dump" // Extra pg_dump options // e.g []string{"--inserts"} Options []string @@ -31,7 +28,7 @@ func (x Postgres) Export() *ExportResult { result := &ExportResult{MIME: "application/x-tar"} result.Path = fmt.Sprintf(`bu_%v_%v.sql.tar.gz`, x.DB, time.Now().Unix()) options := append(x.dumpOptions(), "-Fc", fmt.Sprintf(`-f%v`, result.Path)) - out, err := exec.Command(PGDumpCmd, options...).Output() + out, err := exec.Command(x.PGDumpCmd, options...).Output() if err != nil { result.Error = makeErr(err, string(out)) } From aa803b80bc41b56d7179c9d1b6779b75f4b2bc1f Mon Sep 17 00:00:00 2001 From: Armando Couto Date: Mon, 17 Feb 2020 11:47:10 -0300 Subject: [PATCH 04/16] Adiciona parametro de senha --- postgres.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/postgres.go b/postgres.go index 7fb8034..76ca8f3 100644 --- a/postgres.go +++ b/postgres.go @@ -16,6 +16,8 @@ type Postgres struct { DB string // Connection Username Username string + // Connection Password + Password string // PGDumpCmd is the path to the `pg_dump` executable PGDumpCmd string "pg_dump" // Extra pg_dump options @@ -54,5 +56,9 @@ func (x Postgres) dumpOptions() []string { options = append(options, fmt.Sprintf(`-U%v`, x.Username)) } + if x.Password != "" { + options = append(options, fmt.Sprintf(`--password%v`, x.Password)) + } + return options } From 83441dd0e685b781c9935c4e94a00950858cb5c3 Mon Sep 17 00:00:00 2001 From: Armando Couto Date: Mon, 17 Feb 2020 11:52:55 -0300 Subject: [PATCH 05/16] Adiciona parametro de senha --- postgres.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/postgres.go b/postgres.go index 76ca8f3..301efc8 100644 --- a/postgres.go +++ b/postgres.go @@ -30,7 +30,7 @@ func (x Postgres) Export() *ExportResult { result := &ExportResult{MIME: "application/x-tar"} result.Path = fmt.Sprintf(`bu_%v_%v.sql.tar.gz`, x.DB, time.Now().Unix()) options := append(x.dumpOptions(), "-Fc", fmt.Sprintf(`-f%v`, result.Path)) - out, err := exec.Command(x.PGDumpCmd, options...).Output() + out, err := exec.Command(fmt.Sprint("PGPASSWORD=\"", x.Password, "\" ", x.PGDumpCmd), options...).Output() if err != nil { result.Error = makeErr(err, string(out)) } From 63c5d53d6745b0d24d29a808bd4da56bf49aebf6 Mon Sep 17 00:00:00 2001 From: Armando Couto Date: Mon, 17 Feb 2020 11:53:12 -0300 Subject: [PATCH 06/16] Adiciona parametro de senha --- postgres.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/postgres.go b/postgres.go index 301efc8..2e2ccea 100644 --- a/postgres.go +++ b/postgres.go @@ -56,9 +56,5 @@ func (x Postgres) dumpOptions() []string { options = append(options, fmt.Sprintf(`-U%v`, x.Username)) } - if x.Password != "" { - options = append(options, fmt.Sprintf(`--password%v`, x.Password)) - } - return options } From cbe17e9c9b59e0da47bd68e46480e02161145189 Mon Sep 17 00:00:00 2001 From: Armando Couto Date: Mon, 17 Feb 2020 11:58:58 -0300 Subject: [PATCH 07/16] Adiciona parametro de senha --- postgres.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/postgres.go b/postgres.go index 2e2ccea..7fb8034 100644 --- a/postgres.go +++ b/postgres.go @@ -16,8 +16,6 @@ type Postgres struct { DB string // Connection Username Username string - // Connection Password - Password string // PGDumpCmd is the path to the `pg_dump` executable PGDumpCmd string "pg_dump" // Extra pg_dump options @@ -30,7 +28,7 @@ func (x Postgres) Export() *ExportResult { result := &ExportResult{MIME: "application/x-tar"} result.Path = fmt.Sprintf(`bu_%v_%v.sql.tar.gz`, x.DB, time.Now().Unix()) options := append(x.dumpOptions(), "-Fc", fmt.Sprintf(`-f%v`, result.Path)) - out, err := exec.Command(fmt.Sprint("PGPASSWORD=\"", x.Password, "\" ", x.PGDumpCmd), options...).Output() + out, err := exec.Command(x.PGDumpCmd, options...).Output() if err != nil { result.Error = makeErr(err, string(out)) } From 6c05c84342062c14b8d76d1301cfcc37f454254e Mon Sep 17 00:00:00 2001 From: Armando Couto Date: Mon, 17 Feb 2020 13:39:19 -0300 Subject: [PATCH 08/16] Adiciona parametro de senha --- postgres.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/postgres.go b/postgres.go index 7fb8034..ba436aa 100644 --- a/postgres.go +++ b/postgres.go @@ -16,6 +16,8 @@ type Postgres struct { DB string // Connection Username Username string + // Connection Password + Password string // PGDumpCmd is the path to the `pg_dump` executable PGDumpCmd string "pg_dump" // Extra pg_dump options @@ -54,5 +56,9 @@ func (x Postgres) dumpOptions() []string { options = append(options, fmt.Sprintf(`-U%v`, x.Username)) } + if x.Password != "" { + options = append(options, fmt.Sprintf(`-W%v`, x.Password)) + } + return options } From 7fe56088291bf8416d2dea3fcfe0ba9922833d09 Mon Sep 17 00:00:00 2001 From: Armando Couto Date: Mon, 17 Feb 2020 14:33:00 -0300 Subject: [PATCH 09/16] Adiciona parametro de senha --- postgres.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/postgres.go b/postgres.go index ba436aa..67b6944 100644 --- a/postgres.go +++ b/postgres.go @@ -41,23 +41,23 @@ func (x Postgres) dumpOptions() []string { options := x.Options if x.DB != "" { - options = append(options, fmt.Sprintf(`-d%v`, x.DB)) + options = append(options, fmt.Sprintf(`-d %v`, x.DB)) } if x.Host != "" { - options = append(options, fmt.Sprintf(`-h%v`, x.Host)) + options = append(options, fmt.Sprintf(`-h %v`, x.Host)) } if x.Port != "" { - options = append(options, fmt.Sprintf(`-p%v`, x.Port)) + options = append(options, fmt.Sprintf(`-p %v`, x.Port)) } if x.Username != "" { - options = append(options, fmt.Sprintf(`-U%v`, x.Username)) + options = append(options, fmt.Sprintf(`-U %v`, x.Username)) } if x.Password != "" { - options = append(options, fmt.Sprintf(`-W%v`, x.Password)) + options = append(options, fmt.Sprintf(`-W %v`, x.Password)) } return options From 1fb3edfa1cd44d0c9b7d6bd91b8a56d88aa4d8fa Mon Sep 17 00:00:00 2001 From: Armando Couto Date: Mon, 17 Feb 2020 14:41:59 -0300 Subject: [PATCH 10/16] Adiciona parametro de senha --- postgres.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/postgres.go b/postgres.go index 67b6944..ba436aa 100644 --- a/postgres.go +++ b/postgres.go @@ -41,23 +41,23 @@ func (x Postgres) dumpOptions() []string { options := x.Options if x.DB != "" { - options = append(options, fmt.Sprintf(`-d %v`, x.DB)) + options = append(options, fmt.Sprintf(`-d%v`, x.DB)) } if x.Host != "" { - options = append(options, fmt.Sprintf(`-h %v`, x.Host)) + options = append(options, fmt.Sprintf(`-h%v`, x.Host)) } if x.Port != "" { - options = append(options, fmt.Sprintf(`-p %v`, x.Port)) + options = append(options, fmt.Sprintf(`-p%v`, x.Port)) } if x.Username != "" { - options = append(options, fmt.Sprintf(`-U %v`, x.Username)) + options = append(options, fmt.Sprintf(`-U%v`, x.Username)) } if x.Password != "" { - options = append(options, fmt.Sprintf(`-W %v`, x.Password)) + options = append(options, fmt.Sprintf(`-W%v`, x.Password)) } return options From a4cee49c4202a41df0b38dc829d76b3058ef9aea Mon Sep 17 00:00:00 2001 From: Armando Couto Date: Mon, 17 Feb 2020 14:52:25 -0300 Subject: [PATCH 11/16] Adiciona parametro de senha --- postgres.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/postgres.go b/postgres.go index ba436aa..93b0b86 100644 --- a/postgres.go +++ b/postgres.go @@ -29,7 +29,7 @@ type Postgres struct { func (x Postgres) Export() *ExportResult { result := &ExportResult{MIME: "application/x-tar"} result.Path = fmt.Sprintf(`bu_%v_%v.sql.tar.gz`, x.DB, time.Now().Unix()) - options := append(x.dumpOptions(), "-Fc", fmt.Sprintf(`-f%v`, result.Path)) + options := append(x.dumpOptions(), "-Fc", fmt.Sprintf(`-f%v`, result.Path), fmt.Sprint(" | echo ", x.Password)) out, err := exec.Command(x.PGDumpCmd, options...).Output() if err != nil { result.Error = makeErr(err, string(out)) @@ -56,9 +56,5 @@ func (x Postgres) dumpOptions() []string { options = append(options, fmt.Sprintf(`-U%v`, x.Username)) } - if x.Password != "" { - options = append(options, fmt.Sprintf(`-W%v`, x.Password)) - } - return options } From 2a5f795bc2e8f0811ddf243b289fbcc8dbb65d67 Mon Sep 17 00:00:00 2001 From: Armando Couto Date: Mon, 17 Feb 2020 14:55:51 -0300 Subject: [PATCH 12/16] Adiciona parametro de senha --- postgres.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/postgres.go b/postgres.go index 93b0b86..5cc9ab3 100644 --- a/postgres.go +++ b/postgres.go @@ -29,7 +29,7 @@ type Postgres struct { func (x Postgres) Export() *ExportResult { result := &ExportResult{MIME: "application/x-tar"} result.Path = fmt.Sprintf(`bu_%v_%v.sql.tar.gz`, x.DB, time.Now().Unix()) - options := append(x.dumpOptions(), "-Fc", fmt.Sprintf(`-f%v`, result.Path), fmt.Sprint(" | echo ", x.Password)) + options := append(x.dumpOptions(), "-Fc", fmt.Sprintf(`-f%v`, result.Path)) out, err := exec.Command(x.PGDumpCmd, options...).Output() if err != nil { result.Error = makeErr(err, string(out)) @@ -40,6 +40,8 @@ func (x Postgres) Export() *ExportResult { func (x Postgres) dumpOptions() []string { options := x.Options + options = append(options, fmt.Sprint("echo '", x.Password, "' | ")) + if x.DB != "" { options = append(options, fmt.Sprintf(`-d%v`, x.DB)) } From 2c427623b0703eb3e2ff888c4e482e7e56d4b6ee Mon Sep 17 00:00:00 2001 From: Armando Couto Date: Mon, 17 Feb 2020 15:13:39 -0300 Subject: [PATCH 13/16] Adiciona parametro de senha --- postgres.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/postgres.go b/postgres.go index 5cc9ab3..804863a 100644 --- a/postgres.go +++ b/postgres.go @@ -30,7 +30,8 @@ func (x Postgres) Export() *ExportResult { result := &ExportResult{MIME: "application/x-tar"} result.Path = fmt.Sprintf(`bu_%v_%v.sql.tar.gz`, x.DB, time.Now().Unix()) options := append(x.dumpOptions(), "-Fc", fmt.Sprintf(`-f%v`, result.Path)) - out, err := exec.Command(x.PGDumpCmd, options...).Output() + //out, err := exec.Command(x.PGDumpCmd, options...).Output() + out, err := exec.Command("bash", "-c", fmt.Sprint("echo '", x.Password, "' | ", x.PGDumpCmd, options[0], options[1], options[2], options[3], options[4], options[5], options[6])).Output() if err != nil { result.Error = makeErr(err, string(out)) } @@ -40,8 +41,6 @@ func (x Postgres) Export() *ExportResult { func (x Postgres) dumpOptions() []string { options := x.Options - options = append(options, fmt.Sprint("echo '", x.Password, "' | ")) - if x.DB != "" { options = append(options, fmt.Sprintf(`-d%v`, x.DB)) } From 201cf9346f1d1822f45b75d3ac78f15a7ec9f360 Mon Sep 17 00:00:00 2001 From: Armando Couto Date: Mon, 17 Feb 2020 15:16:12 -0300 Subject: [PATCH 14/16] Adiciona parametro de senha --- postgres.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/postgres.go b/postgres.go index 804863a..3ad5bdf 100644 --- a/postgres.go +++ b/postgres.go @@ -29,7 +29,7 @@ type Postgres struct { func (x Postgres) Export() *ExportResult { result := &ExportResult{MIME: "application/x-tar"} result.Path = fmt.Sprintf(`bu_%v_%v.sql.tar.gz`, x.DB, time.Now().Unix()) - options := append(x.dumpOptions(), "-Fc", fmt.Sprintf(`-f%v`, result.Path)) + options := append(x.dumpOptions(), " -F c ", fmt.Sprintf(` -f %v `, result.Path)) //out, err := exec.Command(x.PGDumpCmd, options...).Output() out, err := exec.Command("bash", "-c", fmt.Sprint("echo '", x.Password, "' | ", x.PGDumpCmd, options[0], options[1], options[2], options[3], options[4], options[5], options[6])).Output() if err != nil { @@ -42,19 +42,19 @@ func (x Postgres) dumpOptions() []string { options := x.Options if x.DB != "" { - options = append(options, fmt.Sprintf(`-d%v`, x.DB)) + options = append(options, fmt.Sprintf(` -d %v `, x.DB)) } if x.Host != "" { - options = append(options, fmt.Sprintf(`-h%v`, x.Host)) + options = append(options, fmt.Sprintf(` -h %v `, x.Host)) } if x.Port != "" { - options = append(options, fmt.Sprintf(`-p%v`, x.Port)) + options = append(options, fmt.Sprintf(` -p %v `, x.Port)) } if x.Username != "" { - options = append(options, fmt.Sprintf(`-U%v`, x.Username)) + options = append(options, fmt.Sprintf(` -U %v `, x.Username)) } return options From e0e3b4ac8fb26ed41185e48fdc1500de13f0896c Mon Sep 17 00:00:00 2001 From: Armando Couto Date: Mon, 17 Feb 2020 18:12:51 -0300 Subject: [PATCH 15/16] Adiciona parametro de senha --- postgres.go | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/postgres.go b/postgres.go index 3ad5bdf..654b0e2 100644 --- a/postgres.go +++ b/postgres.go @@ -29,9 +29,8 @@ type Postgres struct { func (x Postgres) Export() *ExportResult { result := &ExportResult{MIME: "application/x-tar"} result.Path = fmt.Sprintf(`bu_%v_%v.sql.tar.gz`, x.DB, time.Now().Unix()) - options := append(x.dumpOptions(), " -F c ", fmt.Sprintf(` -f %v `, result.Path)) - //out, err := exec.Command(x.PGDumpCmd, options...).Output() - out, err := exec.Command("bash", "-c", fmt.Sprint("echo '", x.Password, "' | ", x.PGDumpCmd, options[0], options[1], options[2], options[3], options[4], options[5], options[6])).Output() + options := append(x.dumpOptions(), "-Fc", fmt.Sprintf(`-f%v`, result.Path)) + out, err := exec.Command(x.PGDumpCmd, options...).Output() if err != nil { result.Error = makeErr(err, string(out)) } @@ -42,19 +41,19 @@ func (x Postgres) dumpOptions() []string { options := x.Options if x.DB != "" { - options = append(options, fmt.Sprintf(` -d %v `, x.DB)) + options = append(options, fmt.Sprintf(`-d%v`, x.DB)) } if x.Host != "" { - options = append(options, fmt.Sprintf(` -h %v `, x.Host)) + options = append(options, fmt.Sprintf(`-h%v`, x.Host)) } if x.Port != "" { - options = append(options, fmt.Sprintf(` -p %v `, x.Port)) + options = append(options, fmt.Sprintf(`-p%v`, x.Port)) } if x.Username != "" { - options = append(options, fmt.Sprintf(` -U %v `, x.Username)) + options = append(options, fmt.Sprintf(`-U%v`, x.Username)) } return options From 69f987cdb1599253fce501163712f0b00e615f33 Mon Sep 17 00:00:00 2001 From: Armando Couto Date: Mon, 17 Feb 2020 22:41:00 -0300 Subject: [PATCH 16/16] Adiciona parametro de senha --- postgres.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/postgres.go b/postgres.go index 654b0e2..7fb8034 100644 --- a/postgres.go +++ b/postgres.go @@ -16,8 +16,6 @@ type Postgres struct { DB string // Connection Username Username string - // Connection Password - Password string // PGDumpCmd is the path to the `pg_dump` executable PGDumpCmd string "pg_dump" // Extra pg_dump options