Version 1.8
This commit is contained in:
@@ -197,33 +197,34 @@ function Test-AdministratorRights {
|
|||||||
function Get-InstallerConfiguration {
|
function Get-InstallerConfiguration {
|
||||||
|
|
||||||
|
|
||||||
Import-VeeamConfiguration
|
Write-Host ""
|
||||||
|
Write-Host "Lade Veeam Konfiguration..." -ForegroundColor Yellow
|
||||||
|
|
||||||
|
|
||||||
$Config =
|
Import-VeeamConfiguration `
|
||||||
|
-Path $Script:ConfigPath
|
||||||
|
|
||||||
Get-Configuration
|
|
||||||
|
|
||||||
|
$Config = Get-Configuration
|
||||||
|
|
||||||
|
|
||||||
|
if($null -eq $Config)
|
||||||
|
{
|
||||||
|
throw "Keine Konfiguration geladen."
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
$Validation =
|
$Validation =
|
||||||
|
|
||||||
Test-VeeamConfiguration `
|
Test-VeeamConfiguration `
|
||||||
|
|
||||||
-Configuration $Config
|
-Configuration $Config
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if(!$Validation.Valid)
|
if(!$Validation.Valid)
|
||||||
{
|
{
|
||||||
|
throw "Konfigurationsprüfung fehlgeschlagen."
|
||||||
throw `
|
|
||||||
"Konfigurationsprüfung fehlgeschlagen."
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
return $Config
|
return $Config
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -524,34 +525,56 @@ function Start-VeeamEnterpriseInstall {
|
|||||||
|
|
||||||
$Configuration = Get-InstallerConfiguration
|
$Configuration = Get-InstallerConfiguration
|
||||||
|
|
||||||
if($Script:DryRun)
|
|
||||||
{
|
|
||||||
|
|
||||||
Write-Host ""
|
|
||||||
|
|
||||||
Write-Host "DRY-RUN aktiviert" -ForegroundColor Yellow
|
|
||||||
|
|
||||||
$Simulation = Invoke-DryRunPipeline -Configuration $Configuration
|
|
||||||
|
|
||||||
return (
|
|
||||||
|
|
||||||
Get-DryRunReport -Results $Simulation
|
|
||||||
|
|
||||||
)
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
$SystemCheck = Test-InstallerPrerequisites
|
$SystemCheck = Test-InstallerPrerequisites
|
||||||
|
|
||||||
$SQLCheck = Test-InstallerSQL -Configuration $Configuration
|
$SQLCheck = Test-InstallerSQL -Configuration $Configuration
|
||||||
|
|
||||||
$Installation = Install-VeeamProduct -Configuration $Configuration -SourcePath $VeeamSourcePath
|
if($Script:DryRun)
|
||||||
|
{
|
||||||
|
|
||||||
$Repository = Initialize-BackupRepository -Configuration $Configuration
|
Write-Host ""
|
||||||
|
Write-Host "DRY-RUN aktiviert" -ForegroundColor Yellow
|
||||||
|
|
||||||
$Jobs = Initialize-BackupJobs -Configuration $Configuration
|
|
||||||
|
$Installation =
|
||||||
|
Test-DryRunInstallation `
|
||||||
|
-SourcePath $VeeamSourcePath `
|
||||||
|
-SQLServer $Configuration.SQL.Server `
|
||||||
|
-Database $Configuration.SQL.Database
|
||||||
|
|
||||||
|
|
||||||
|
$Repository =
|
||||||
|
Test-DryRunRepository `
|
||||||
|
-Name $Configuration.Repository.Name `
|
||||||
|
-Path $Configuration.Repository.Path
|
||||||
|
|
||||||
|
|
||||||
|
$Jobs =
|
||||||
|
Test-DryRunBackupJob `
|
||||||
|
-Name $Configuration.BackupJob.Name `
|
||||||
|
-Repository $Configuration.Repository.Name `
|
||||||
|
-RetentionDays $Configuration.Repository.RetentionDays
|
||||||
|
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
|
||||||
|
$Installation =
|
||||||
|
Install-VeeamProduct `
|
||||||
|
-Configuration $Configuration `
|
||||||
|
-SourcePath $VeeamSourcePath
|
||||||
|
|
||||||
|
|
||||||
|
$Repository =
|
||||||
|
Initialize-BackupRepository `
|
||||||
|
-Configuration $Configuration
|
||||||
|
|
||||||
|
|
||||||
|
$Jobs =
|
||||||
|
Initialize-BackupJobs `
|
||||||
|
-Configuration $Configuration
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -763,24 +786,22 @@ function Save-EnterpriseReport {
|
|||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
|
||||||
Initialize-Installer
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Initialize-EnterpriseLog `
|
Initialize-EnterpriseLog `
|
||||||
|
|
||||||
-Name "VeeamEnterprise"
|
-Name "VeeamEnterprise"
|
||||||
|
|
||||||
|
|
||||||
|
Write-EnterpriseLog `
|
||||||
|
-Level INFO `
|
||||||
|
-Message "Logging initialisiert"
|
||||||
|
|
||||||
|
|
||||||
|
Initialize-Installer
|
||||||
|
|
||||||
|
|
||||||
Write-EnterpriseLog `
|
Write-EnterpriseLog `
|
||||||
|
|
||||||
-Level INFO `
|
-Level INFO `
|
||||||
|
|
||||||
-Message "Installer gestartet"
|
-Message "Installer gestartet"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if($Script:DryRun)
|
if($Script:DryRun)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user