Important The vicfg-cfgbackup command is available only for ESXi hosts. The command is not available through a vCenter Server system connection. No equivalent ESXCLI command is supported.
1 Back up the configuration by using the vicfg-cfgbackup command.
3 Restore the configuration by using the vicfg-cfgbackup command.For the backup filename, include the number of the build that is running on the host that you are backing up. If you are running vCLI on vMA, the backup file is saved locally on vMA. Backup files can safely be stored locally because virtual appliances are stored in the /vmfs/volumes/<datastore> directory on the host, which is separate from the ESXi image and configuration files.
3 Run vicfg-cfgbackup with the -l flag to load the host configuration from the specified backup file. Specify one of the options listed in Connection Options for vCLI Host Management Commands in place of <conn_options>.To back up a host configuration, you can run vicfg-cfgbackup from a vMA instance. The vMA instance can run on the target host (the host that you are backing up or restoring), or on a remote host.To restore a host configuration, you must run vicfg-cfgbackup from a vMA instance running on a remote host. The host must be in maintenance mode, which means all virtual machines (including vMA) must be suspended on the target host.
■ To back up one of the host’s configuration (host1 or host2), run vicfg-cfgbackup from the vMA appliance running on either host1 or host2. Use the --server option to specify the host for which you want backup information. The information is stored on vMA.
■ To restore the host1 configuration, run vicfg-cfgbackup from the vMA appliance running on host2. Use the --server option to point to host1 to restore the configuration to that host.
■ To restore the host2 configuration, run vicfg-cfgbackup from the vMA appliance running on host1. Use the --server option to point to host2 to restore the configuration to that host.