0% found this document useful (0 votes)
109 views3 pages

How To Backup and Restore The VMware ESXi 65 Configuration

This document explains how to backup and restore the configuration of a VMware ESXi 6.5 host using the ESXi command line. It describes connecting to the host via SSH and running the "vim-cmd hostsvc/firmware/backup_config" command to backup the configuration. It then explains how to transfer the backup file off the host and restore the configuration on the same or new host by installing the backup file version, connecting via SSH, transferring the backup file to the host, and running restore commands before rebooting.

Uploaded by

lesenateur
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
109 views3 pages

How To Backup and Restore The VMware ESXi 65 Configuration

This document explains how to backup and restore the configuration of a VMware ESXi 6.5 host using the ESXi command line. It describes connecting to the host via SSH and running the "vim-cmd hostsvc/firmware/backup_config" command to backup the configuration. It then explains how to transfer the backup file off the host and restore the configuration on the same or new host by installing the backup file version, connecting via SSH, transferring the backup file to the host, and running restore commands before rebooting.

Uploaded by

lesenateur
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

How to Backup and Restore the VMware ESXi 6.

5
Configuration
graspingtech.com/backup-vmware-esxi-6-5-configuration/

13 May 2017
In this post, you will learn how to backup and restore the VMware ESXi 6.5 configuration
using the ESXi command line.

Introduction
It goes without saying how important it is to have a backup and the configuration of an
ESXi host is no exception. It can be time consuming to configure the network settings and
should your hosts USB stick or operating system drive fail, a backup will save you time.

The following tutorial will show you how to create a backup and how to do a restore
should you need to.

How to Backup the ESXi Configuration


First of all, since this tutorial will be using the ESXi command line, you will need to
connect to the host using SSH. If you don’t know how to enable SSH, you can learn how
in the following post: How to Connect to an ESXi 6.5 Host using SSH on Windows.

Once you have connected to the host via SSH, run the following command to backup the
configuration:

vim-cmd hostsvc/firmware/backup_config

The following image shows the output of the command.

1/3
The backup will be saved in /scratch/downloads

Obviously storing the backup on the same device is not ideal so we need to transfer the
archive off the host. You can do that by entering the URL of the backup commands
output into a web browser. As you can see in the image above the URL does not contain
the IP address of the host. You will need to replace the * with the host IP address.

Alternatively you can use WinSCP or some other utility to transfer the archive using SSH.
To learn how to transfer files you can read: How to Transfer ISO Images and Files to an
ESXi Host from Windows.

Restoring the ESXi Configuration


In order to restore the backup of the ESXi configuration, you need to install the same
version and build number of ESXi on your hardware. Once installed, you need to
configure the management network so that you can connect to the device using SSH.
Again you will need to enable SSH which you can find out how to do in the post: How to
Connect to an ESXi 6.5 Host using SSH on Windows.

Once connected you will need to transfer the backup archive to /tmp/configBundle.tgz
on the host using a transfer utility. Read How to Transfer ISO Images and Files to an ESXi
Host from Windows to find out how.

With the file transfered, all that’s left to do is run the following commands:

vim-cmd hostsvc/maintenance_mode_enter
vim-cmd hostsvc/firmware/restore_config /tmp/configBundle.tgz
2/3
The host will reboot with the old configuration applied. You can now exit maintenance
mode and use the host.

Conclusion
In this post we covered how to backup and restore the configuration of an ESXi 6.5 host
using the ESXi Command line. It’s worth mentioning again that in order to restore a
backup the build of the host must match the build contained in the original backup. This
means you should take a backup each time you upgrade the host. If you have any
questions or comments about this post, you can leave them in the comment section
below.

Tags: Virtualization ESXi

3/3

You might also like