Backup and Restore ESXi Configuration via CLI Command

How to Backup and Restore ESXi Configuration via CLI Command

VMware vSphere CLI

The following commands are used to backup and restore ESXi configuration via CLI. You can back up the host configuration, restore the configuration to the host, force the restore of the configuration, and reset the host to factory settings.

Back up ESXi host configuration before you change the configuration or upgrade the ESXi image. The vSphere Upgrade Guide discusses backing up and restoring the ESXi configuration in some detail.

Important: This command is supported for ESXi hosts but not for ESX hosts.

Command for Backing up ESXi Server configuration.

Command Syntax  (-S can be used instead of Save)

–save | -s <backupfile>

Include the number of the build that is running on the host that you are backing up in the backup filename. If you are running the vSphere CLI from vMA, the backup file is saved locally on vMA. Local storage for backup files is safe because vMA is stored in the /vmfs/volumes/<datastore> directory, which is separate from the ESXi image and configuration files.

Examples (

Command for Restoring ESXi Server configuration.

Command Syntax (-l can be used instead of load) (vicfg-. commands examples and usage)

About vmworld

Check Also

Export vCenter Logs File Bundles

ESXi 5.x host diagnostic information can be gathered using the vSphere Client connected to the ESXi host or to vCenter Server.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.