How to backup and restore an ESXi host configuration

With VMware ESXi, it’s possible to backup and restore the host configuration through a simple line command.

To backup the host :
vicfg-cfgbackup.pl --server 'ServerName' -s 'BackupName'

To restore the backup configuration to the host. This will reboot once the process is complete.
vicfg-cfgbackup.pl --server 'ServerName' -l 'BackupName'