fix(SQL): LocalTargetPath is now 'NONE' if localbackup is false
This commit is contained in:
parent
a0d8162f3e
commit
a3c3426475
1 changed files with 2 additions and 0 deletions
2
main.go
2
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())
|
||||
}
|
||||
|
|
|
|||
Reference in a new issue