From bef2f08414f225d07ab357535e9b329610093619 Mon Sep 17 00:00:00 2001 From: Madzone Date: Tue, 11 Aug 2026 16:28:22 +0200 Subject: [PATCH] Version 1.0.2 --- VEEAM-INSTALL/Config/VeeamConfig.example.json | 41 ++++++ VEEAM-INSTALL/Install-VeeamEnterprise.ps1 | 2 +- VEEAM-INSTALL/LICENSE | 21 ++++ VEEAM-INSTALL/README.md | 118 ++++++++++++++++++ 4 files changed, 181 insertions(+), 1 deletion(-) create mode 100644 VEEAM-INSTALL/Config/VeeamConfig.example.json create mode 100644 VEEAM-INSTALL/LICENSE create mode 100644 VEEAM-INSTALL/README.md diff --git a/VEEAM-INSTALL/Config/VeeamConfig.example.json b/VEEAM-INSTALL/Config/VeeamConfig.example.json new file mode 100644 index 0000000..c21423f --- /dev/null +++ b/VEEAM-INSTALL/Config/VeeamConfig.example.json @@ -0,0 +1,41 @@ +{ + "Environment": { + "Name": "Test", + "Owner": "IT" + }, + "Veeam": { + "Version": "13.0.1.1071", + "SourcePath": "Auto" + }, + "SQL": { + "Engine": "MSSQL", + "InstallNew": false, + "Server": "Auto", + "Instance": "VEEAMSQLSERVER", + "Database": "VeeamBackup" + }, + "Repository": { + "Name": "PrimaryRepository", + "Path": "Auto", + "RetentionDays": 30 + }, + "BackupJob": { + "Name": "ServerBackup", + "Platform": "VMware", + "Objects": [], + "Schedule": "22:00", + "ScheduleGroups": [ + { "Name": "A-F", "From": "A", "To": "F", "Time": "20:00" }, + { "Name": "G-L", "From": "G", "To": "L", "Time": "21:00" }, + { "Name": "M-R", "From": "M", "To": "R", "Time": "22:00" }, + { "Name": "S-Z", "From": "S", "To": "Z", "Time": "23:00" }, + { "Name": "Other", "From": "Other", "To": "Other", "Time": "00:00" } + ], + "Enabled": true + }, + "Options": { + "ApplicationAware": true, + "Encryption": true, + "Compression": "Optimal" + } +} diff --git a/VEEAM-INSTALL/Install-VeeamEnterprise.ps1 b/VEEAM-INSTALL/Install-VeeamEnterprise.ps1 index 24f397d..b0fee16 100644 --- a/VEEAM-INSTALL/Install-VeeamEnterprise.ps1 +++ b/VEEAM-INSTALL/Install-VeeamEnterprise.ps1 @@ -13,7 +13,7 @@ - Dry-Run Unterstützung .VERSION - 1.0.1 + 1.0.2 #> diff --git a/VEEAM-INSTALL/LICENSE b/VEEAM-INSTALL/LICENSE new file mode 100644 index 0000000..f8cd7bb --- /dev/null +++ b/VEEAM-INSTALL/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2026 VEEAM-INSTTALL contributors + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/VEEAM-INSTALL/README.md b/VEEAM-INSTALL/README.md new file mode 100644 index 0000000..bce679a --- /dev/null +++ b/VEEAM-INSTALL/README.md @@ -0,0 +1,118 @@ +# Veeam Backup & Replication Enterprise Installer + +PowerShell-basierter Installer zur automatisierten Installation und Grundkonfiguration von Veeam Backup & Replication auf Windows Server. + +> **Status:** Entwicklung und Test. Vor einem produktiven Einsatz vollständig in einer isolierten Testumgebung prüfen. + +## Funktionen + +- Installation von Veeam Backup & Replication +- Prüfung der System- und Administratorvoraussetzungen +- SQL-Prüfung und -Vorbereitung +- Einrichtung eines Backup Repositorys +- Definition und Zeitplanung von Backup-Jobs +- Application-Aware Processing und Verschlüsselungsoptionen +- zentrales Logging, Audit-Logging und Installationsreports +- Dry-Run-Modus ohne geplante Änderungen am Zielsystem +- modulare PowerShell-Architektur + +## Voraussetzungen + +- unterstütztes Windows-Server-Betriebssystem +- Windows PowerShell 5.1 oder neuer +- lokale Administratorrechte +- Veeam Backup & Replication Installationsmedium +- erreichbare SQL-Instanz, sofern keine lokale Instanz eingerichtet wird +- ausreichend Speicherplatz für Installation und Backup Repository + +## Schnellstart + +Repository klonen oder herunterladen und in einer PowerShell-Sitzung mit Administratorrechten öffnen. + +Die Beispielkonfiguration als lokale Konfiguration kopieren: + +```powershell +Copy-Item .\Config\VeeamConfig.example.json .\Config\VeeamConfig.json +``` + +`Config\VeeamConfig.json` an die Zielumgebung anpassen. Die lokale Datei wird von Git ignoriert. + +Zuerst einen Dry Run ausführen: + +```powershell +.\Install-VeeamEnterprise.ps1 -DryRun +``` + +Installation mit automatisch erkanntem Installationsmedium starten: + +```powershell +.\Install-VeeamEnterprise.ps1 +``` + +Installationsmedium und Antwortdatei können auch explizit angegeben werden: + +```powershell +.\Install-VeeamEnterprise.ps1 ` + -VeeamSourcePath 'D:\' ` + -VeeamAnswerFile 'C:\Secure\VeeamAnswerFile.xml' +``` + +## Konfiguration + +Die Vorlage [`Config/VeeamConfig.example.json`](Config/VeeamConfig.example.json) enthält ausschließlich unvertrauliche Beispielwerte. Unterstützte Bereiche sind: + +- `Environment`: Name und Verantwortungsbereich +- `Veeam`: Version und Quelle des Installationsmediums +- `SQL`: Engine, Server, Instanz und Datenbank +- `Repository`: Name, Pfad und Aufbewahrungszeit +- `BackupJob`: Plattform, Objekte, Zeitplan und Aktivierungsstatus +- `Options`: Application-Aware Processing, Verschlüsselung und Kompression + +`Auto` lässt den Installer einen geeigneten lokalen Wert ermitteln. Vor dem Produktivlauf sollten alle automatisch ermittelten Werte im Dry Run kontrolliert werden. + +## Projektstruktur + +```text +VEEAM-INSTTALL/ +├── Install-VeeamEnterprise.ps1 +├── Config/ +│ └── VeeamConfig.example.json +├── Modules/ +│ ├── Core/ +│ ├── Platforms/ +│ └── Veeam/ +├── Scripts/ +│ └── Test-VeeamModules.ps1 +├── .gitignore +├── LICENSE +└── README.md +``` + +## Tests + +Die Module lassen sich separat prüfen: + +```powershell +.\Scripts\Test-VeeamModules.ps1 +``` + +Der vollständige Installer benötigt Windows und muss für systemverändernde Schritte mit Administratorrechten ausgeführt werden. + +## Sicherheit + +- Keine Passwörter, Tokens, privaten Schlüssel, Zertifikate oder Lizenzdateien im Repository speichern. +- `Config\VeeamConfig.json` und `Config\VeeamAnswerFile.xml` bleiben lokal und werden ignoriert. +- Zugangsdaten über sichere, lokale Mechanismen bzw. Veeam Credential Manager referenzieren. +- Logs, Reports und exportierte Konfigurationen vor einer Weitergabe auf sensible Daten prüfen. +- Installationsmedien und generierte Laufzeitdateien nicht committen. + +Vor jedem Commit prüfen: + +```powershell +git status +git diff --cached +``` + +## Lizenz + +Dieses Projekt steht unter der [MIT-Lizenz](LICENSE).