There are several ways to backup an ESXi host configuration but the easiest is probably to use PowerCLI with the “Get-VMHostFirmware” cmdlet which can easily be scripted and put in a scheduled task. You can also use vim-cmd and vicfg-.