From a3c34264754a99a567b7be2250a052845aa5ec10 Mon Sep 17 00:00:00 2001 From: netbenix Date: Thu, 23 Dec 2021 13:15:41 +0100 Subject: [PATCH] fix(SQL): LocalTargetPath is now 'NONE' if localbackup is false --- main.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/main.go b/main.go index 4e15540..aeb5053 100644 --- a/main.go +++ b/main.go @@ -36,6 +36,8 @@ func main(){ } if !backupItem.CreateLocalBackup && backupItem.RemoteStorageType != "none"{ + backupItem.LocalTargetPath = "NONE" + _ = os.Remove(bakFile) SQL.NewLogEntry(SQL.GetSQLInstance(), uuid.New(), SQL.LogInfo, backupItem.BackupName, SQL.SQLStage_DeleteTmp, SQL.REMOTE_NONE, "Deleted tmp file" ,time.Now()) }