Skip to content

Commit

Permalink
Merge pull request #77 from jkaninda/develop
Browse files Browse the repository at this point in the history
fix: backup scheduled mode script for Docker, remove port number
  • Loading branch information
jkaninda authored Sep 28, 2024
2 parents 57986e7 + 7475e35 commit 6be82f2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/scripts.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ func CreateCrontabScript(disableCompression bool, storage string) {

scriptContent = fmt.Sprintf(`#!/usr/bin/env bash
set -e
/usr/local/bin/pg-bkup backup --dbname %s --port %s --storage %s %v
`, os.Getenv("DB_NAME"), os.Getenv("DB_PORT"), storage, disableC)
/usr/local/bin/pg-bkup backup --dbname %s --storage %s %v
`, os.Getenv("DB_NAME"), storage, disableC)

if err := utils.WriteToFile(backupCronFile, scriptContent); err != nil {
utils.Fatal("Error writing to %s: %v\n", backupCronFile, err)
Expand Down

0 comments on commit 6be82f2

Please sign in to comment.