Besonders vor kritischen Arbeiten oder Update/Upgrades ist es sinnvoll, die Konfiguration eines ESX-Hosts zu sichern.
ESXi Konfiguration Backup
1
2
3
4
5
6
7
8
9
10
11
12
write-host "Specify local backup destination path" -ForegroundColor Green
$Path= Read-Host "Enter backup destination path on your local device"
write-host "Specify ESXi IP" -ForegroundColor Green
$ESXiHost= Read-Host "Enter your ESXi IP"
write-host "Connecting to Host" -ForegroundColor Green
Connect-VIServer $ESXiHost
Get-VMHost | Get-VMHostFirmware -BackupConfiguration -DestinationPath $Path
ESXi Konfiguration Restore
1
2
3
4
5
6
7
8
9
10
11
12
13
14
write-host "Specify local backup destination path and the config file" -ForegroundColor Green
$Path= Read-Host "Enter backup destination path on your local device"
write-host "Specify ESXi IP" -ForegroundColor Green
$ESXiHost= Read-Host "Enter your ESXi IP"
write-host "Connecting to Host" -ForegroundColor Green
Connect-VIServer $ESXiHost
Get-VMHost | Set-VMHost -State Maintenance
Get-VMHost | Set-VMHostFirmware -Restore -Force -SourcePath $Path