{"id":59,"date":"2018-10-31T16:51:45","date_gmt":"2018-10-31T21:51:45","guid":{"rendered":"https:\/\/tech.my-netsol.com\/?p=59"},"modified":"2018-10-31T16:51:45","modified_gmt":"2018-10-31T21:51:45","slug":"how-to-backup-and-restore-the-vmware-esxi-6x-configuration","status":"publish","type":"post","link":"https:\/\/tech.my-netsol.com\/?p=59","title":{"rendered":"How to Backup and Restore the VMware ESXi 6x Configuration"},"content":{"rendered":"<h2 id=\"how-to-backup-the-esxi-configuration\">How to Backup the ESXi Configuration<\/h2>\n<p>(https:\/\/graspingtech.com\/backup-vmware-esxi-6-5-configuration\/)<\/p>\n<p>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\u2019t know how to enable SSH, you can learn how in the following post: <a href=\"https:\/\/graspingtech.com\/connect-esxi-6-5-host-using-ssh-windows\/\">How to Connect to an ESXi 6.5 Host using SSH on Windows.<\/a><\/p>\n<p>Once you have connected to the host via SSH, run the following command to backup the configuration:<\/p>\n<pre><code>vim-cmd hostsvc\/firmware\/backup_config\n<\/code><\/pre>\n<p>The following image shows the output of the command.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/graspingtech.com\/backup-vmware-esxi-6-5-configuration\/backup-vmware-esxi-result.png\" alt=\"Backup VMware ESXi 6.5 Configuration\" \/><\/p>\n<p>The backup will be saved in <strong>\/scratch\/downloads<\/strong><\/p>\n<p>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.<\/p>\n<p>Alternatively you can use WinSCP or some other utility to transfer the archive using SSH. To learn how to transfer files you can read: <a href=\"https:\/\/graspingtech.com\/transfer-files-vmware-esxi-6-5-host\/\">How to Transfer ISO Images and Files to an ESXi Host from Windows.<\/a><\/p>\n<h2 id=\"restoring-the-esxi-configuration\">Restoring the ESXi Configuration<\/h2>\n<p>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: <a href=\"https:\/\/graspingtech.com\/connect-esxi-6-5-host-using-ssh-windows\/\">How to Connect to an ESXi 6.5 Host using SSH on Windows<\/a>.<\/p>\n<p>Once connected you will need to transfer the backup archive to <strong>\/tmp\/configBundle.tgz<\/strong> on the host using a transfer utility. Read <a href=\"https:\/\/graspingtech.com\/transfer-files-vmware-esxi-6-5-host\/\">How to Transfer ISO Images and Files to an ESXi Host from Windows<\/a> to find out how.<\/p>\n<p>With the file transfered, all that\u2019s left to do is run the following commands:<\/p>\n<pre><code class=\"language-bash\">vim-cmd hostsvc\/maintenance_mode_enter\nvim-cmd hostsvc\/firmware\/restore_config \/tmp\/configBundle.tgz\n<\/code><\/pre>\n<p>The host will reboot with the old configuration applied. You can now exit maintenance mode and use the host.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>How to Backup the ESXi Configuration (https:\/\/graspingtech.com\/backup-vmware-esxi-6-5-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\u2019t know how to enable SSH, you can learn how in the following post: How to Connect to an ESXi 6.5 Host using &#8230; <a title=\"How to Backup and Restore the VMware ESXi 6x Configuration\" class=\"read-more\" href=\"https:\/\/tech.my-netsol.com\/?p=59\" aria-label=\"Read more about How to Backup and Restore the VMware ESXi 6x Configuration\">Read more<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[5],"tags":[],"class_list":["post-59","post","type-post","status-publish","format-standard","hentry","category-vmware"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/tech.my-netsol.com\/index.php?rest_route=\/wp\/v2\/posts\/59","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tech.my-netsol.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tech.my-netsol.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tech.my-netsol.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/tech.my-netsol.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=59"}],"version-history":[{"count":0,"href":"https:\/\/tech.my-netsol.com\/index.php?rest_route=\/wp\/v2\/posts\/59\/revisions"}],"wp:attachment":[{"href":"https:\/\/tech.my-netsol.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=59"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tech.my-netsol.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=59"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tech.my-netsol.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=59"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}