fix(SQL): LocalTargetPath is now 'NONE' if localbackup is false

This commit is contained in:
netbenix 2021-12-23 13:15:41 +01:00
parent a0d8162f3e
commit a3c3426475

View file

@ -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())
}