Now, the process of backing up and restoring the configuration of ESXi is fairly simple.
Backup and Restore ESXi Configuration with PowerCLI, the steps:
Open PowerCLI > Connect to vCenter with Connect VI-Server command and enter this single line to backup the configuration of all the hosts that are attached to vCenter server.
get-vmhost | get-vmhostfirmware -BackupConfiguration -DestinationPath “C:\temp\anyfolder” all files fileswill be copied to c:\temp\any folder
Now, if We need to restore a host’s configuration, need to put the host into maintenance mode first and then
Enter the restore command:
Set-VMHostFirmware -VMHost <IP_or_FQDN> -Restore -Force -SourcePathThe host will reboot immediately after we hit the enter key without any prompt.
No comments:
Post a Comment