Hello,

if you want to backup the host configuration using the command line, you can execute this two commands:

 

  1. vim-cmd hostsvc/firmware/sync_config (In order to save/sync the host configuration)
  2. vim-cmd hostsvc/firmware/backup_config (to backup the configuration)


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:


  1. vim-cmd hostsvc/maintenance_mode_enter (put the host in maintenance mode)
  2. vim-cmd hostsvc/firmware/restore_config /tmp/configBundle.tgz (restore the backup using the backup file. Before, the backup file must be uploaded to a location accessible by the host)


I got this information from this vmware's kb:

VMware KB: Backing up and restoring ESXi configuration using the vSphere Command-Line Interface and vSphere PowerCLI…


And, we can call it a day!


Best regards,

Pablo