Skip to content
This repository has been archived by the owner on Oct 29, 2024. It is now read-only.

Commit

Permalink
Trying...
Browse files Browse the repository at this point in the history
This shouldn't matter. May be an ENV issue?
  • Loading branch information
jadudm committed Mar 5, 2024
1 parent 112a644 commit 4cb823b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
3 changes: 1 addition & 2 deletions internal/pipes/mc.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,10 @@ func Mc(in_pipe *script.Pipe,
cmd := []string{
"mc",
"pipe",
fmt.Sprintf("%s/%s/backups/%s-%s-%s_%s.dump",
fmt.Sprintf("%s/%s/backups/%s-%s_%s.dump",
minio_alias,
upc["bucket"],
prefix,
source_db,
schema, table),
}
// Combine the slice for printing and execution.
Expand Down
4 changes: 2 additions & 2 deletions internal/pipes/pg_dump.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ func PG_Dump_Table(creds *vcap.CredentialsRDS, schema string, table string, debu
}
// Combine the slice for printing and execution.
combined := strings.Join(cmd[:], " ")
logging.Logger.Printf("BACKUPS pg_dump targeting %s\n", creds.DB_Name)
if debug {
fmt.Printf("command: %s\n", combined)
}
logging.Logger.Printf("BACKUPS pg_dump targeting %s\n", creds.DB_Name)
return script.Exec(combined)
}

Expand All @@ -61,9 +61,9 @@ func PG_Dump(creds *vcap.CredentialsRDS, debug bool) *script.Pipe {
}
// Combine the slice for printing and execution.
combined := strings.Join(cmd[:], " ")
logging.Logger.Printf("BACKUPS pg_dump targeting %s\n", creds.DB_Name)
if debug {
fmt.Printf("command: %s\n", combined)
}
logging.Logger.Printf("BACKUPS pg_dump targeting %s\n", creds.DB_Name)
return script.Exec(combined)
}
7 changes: 3 additions & 4 deletions internal/pipes/s3.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,18 +26,17 @@ func S3(in_pipe *script.Pipe,
"s3",
"cp",
"-",
fmt.Sprintf("s3://%s/backups/%s-%s.dump",
fmt.Sprintf("s3://%s/backups/%s-%s_%s.dump",
up.Bucket,
prefix,
source_db),
schema, table),
}

// Combine the slice for printing and execution.
combined := strings.Join(cmd[:], " ")
logging.Logger.Printf("BACKUPS s3 targeting %s\n", prefix)
if debug {
fmt.Printf("command: %s\n", combined)

}
logging.Logger.Printf("BACKUPS s3 targeting %s\n", prefix)
return in_pipe.Exec(combined)
}

0 comments on commit 4cb823b

Please sign in to comment.