From 7475e35bd34769930a00c514d4e118ffc65105b0 Mon Sep 17 00:00:00 2001 From: Jonas Kaninda Date: Sat, 28 Sep 2024 03:40:33 +0200 Subject: [PATCH] fix: backup scheduled mode script for Docker, remove port number --- pkg/scripts.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/scripts.go b/pkg/scripts.go index 9800b2d..12dec23 100644 --- a/pkg/scripts.go +++ b/pkg/scripts.go @@ -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)