Difference between revisions of "ESXi host configuration backup and restore"
From Notes_Wiki
(Created page with "<yambe:breadcrumb self="ESXi host configuration backup and restore">VMWare vSphere or ESXi|VMWare vSphere or ESXi</yambe:breadcrumb> =ESXi host configuration backup and restor...") |
m |
||
Line 1: | Line 1: | ||
[[Main_Page|Home]] > [[VMWare platform]] > [[VMWare vSphere or ESXi]] > [[ESXi host configuration backup and restore]] | |||
==Backup of ESXi configuration== | ==Backup of ESXi configuration== | ||
Line 54: | Line 53: | ||
[[Main_Page|Home]] > [[VMWare platform]] > [[VMWare vSphere or ESXi]] > [[ESXi host configuration backup and restore]] |
Latest revision as of 08:46, 7 April 2022
Home > VMWare platform > VMWare vSphere or ESXi > ESXi host configuration backup and restore
Backup of ESXi configuration
To take backup of ESXi configuration use following steps:
- Save/Sync latest ESXi configuration to bootbank:
- vim-cmd hostsvc/firmware/sync_config
- ESXi configuration is saved every hour automatically to the /bootblank/state.tgz file. For this reason, you should ensure that the current ESXi configuration is written to ESXi configuration files right now to confirm that all changes made to ESXi configuration since the last autosave are saved:
- Take/Download backup of saved configuration using:
- vim-cmd hostsvc/firmware/backup_config
- The above command will output temporary URL (Shortlived - Valid for a few minutes). Use that URL by replacing asterisk (*) with IP/FQDN of ESXi host to download the configuration.
- The file gets created in subtree of downloads folder of Scratch partition (Refer ESXi persistent scratch location esp. for VSAN nodes)
Restore ESXi configuration
If you have backup of ESXi configuration taken using steps mentioned above, then the same can be restored using:
- Enable maintenance mode on host using:
- esxcli system maintenanceMode set –enable yes
- OR other option is to use
- vim-cmd hostsvc/maintenance_mode_enter
- Copy (scp) the bundle to ESXi host datastore
- Ensure that file is named 'configBundle.tgz'.
- mv /tmp/configBundle-esxi6-7b.localdomain.tgz /tmp/configBundle.tgz
- Restore the configuration using:
- vim-cmd hostsvc/firmware/restore_config /tmp/configBundle.tgz
- Disable maintenance mode using:
- esxcli system maintenanceMode set –enable no
- Or other option is to use
- vim-cmd hostsvc/maintenance_mode_exit
Refer:
Home > VMWare platform > VMWare vSphere or ESXi > ESXi host configuration backup and restore