if you want to backup the host configuration using the command line, you can execute this two commands:
The last command had better output something similar to this:
Bundle can be downloaded at : http://*/downloads/configBundle-localhost..tgz
Then, the backup can be downloaded connecting to this URL: http://IP_of_the_ESXi_Host/downloads/configBundle-localhost..tgz
If you want to restore the backup, this steps must be done:
I got this information from this vmware's kb:
And, we can call it a day!