How to Backup and Restore VMware ESXI Host Configuration
How to Backup and Restore VMware ESXI Host Configuration
Having healthy ESXi hosts is a key to success when running virtual machines. Thatโs why it is better to back up ESXi configuration. Thus, if something goes wrong with an ESXi host, its configuration can be restored in a few minutes without spending a lot of time to configure an ESXi server from scratch.
The backup procedure is:
1. Connect to ESXi host via SSH.
2. Run the command below:
vim-cmd hostsvc/firmware/sync_config
This command is to make sure that all the changes of configuration would be saved to the target file.
3. Run the command below:
vim-cmd hostsvc/firmware/backup_config
This command is to generate the link to download the file containing the host configuration. It is like http://*/downloads/123456/configBundle-xx.xx.xx.xx.tgz.
You need to be aware that the “*” is the IP or FQDN of the host so you should manually replace it.
4. Open a web browser and copy and paste the link into it. Type Enter.
The backup file would be downloaded then. It could be found in the folder Download whose name contains “configBundle” and host FQDN. That’s the way to export ESXi configuration.
To decrypt encrypted state.tgz , run the command:
crypto-util envelope extract –aad ESXConfiguration local.tgz.ve local.tgz
The restore procedure is:
1. Rename the backup file into “configBundle.tgz”.
2. Run the command below:
vim-cmd hostsvc/maintenance_mode_enter
This command is to put the ESXi host into maintenance mode
3. Copy the backup file to ESXi host
4. Run the command below:
vim-cmd hostsvc/firmware/restore_config /backup_location/configBundle.tgz
You should replace “/backup_location” with the actual directory.
๐ธ Support channel & make donation :
https://www.paypal.me/aminenina/10
๐ธ Subscribe for more videos :
Youtube: https://www.youtube.com/user/aminosninatos
๐ธ Follow me On Social Media
Facebook : https://www.facebook.com/aminosninatos/
***********************************************************************
๐ธ How To Check Bad Blocks Or Bad Sectors On a Hard Disk In Linux
https://www.youtube.com/watch?v=jE-I9…
๐ธ Linux How To Partition a Hard Drive Using the Parted Command
https://www.youtube.com/watch?v=2IoEW…
๐ธ Checking or Repairing a File System using fsck in Linux
https://www.youtube.com/watch?v=CcV_M…
๐ธ How To Monitor the Health of Your Hard Drive in Linux using SMART
https://www.youtube.com/watch?v=z1z9R…
๐ธ Linux iotop: Monitor your disk Input/Output
https://www.youtube.com/watch?v=pWG4v…
๐ธ How To use the โduโ (Disk Usage) Command in Linux
https://www.youtube.com/watch?v=RA4bM…
๐ธ How To View Manipulate System Logs In Linux Using Journalctl Command
https://www.youtube.com/watch?v=NE-fT-Fwvgw&t=3s
๐ธ How To Sync And Backup Files In Linux Using Rsync Command
https://www.youtube.com/watch?v=aIMbg7vG6Rg&t=10s
๐ธ Linux cURL Command Tips and Tricks
https://www.youtube.com/watch?v=hA3BAALWFJI
๐ธ Linux tail and multitail commands
https://www.youtube.com/watch?v=QnPyWNyCn-U
๐ธ Linux How To view Log Files
https://www.youtube.com/watch?v=CEYhs_9L01M&t=2s
๐ธ How To use the History Command On Linux
https://www.youtube.com/watch?v=RkxIWlypB-s
๐ธ Tips and Tricks How To manipulate Text Files on Linux
https://www.youtube.com/watch?v=Zk9M1w55XO0
๐ธ How to Archive, Compress and Extract Files Using the tar Command on Linux
https://www.youtube.com/watch?v=8j-ZzOfbclM&t=2s
๐ธ Linux – How to split larger files into smaller parts
https://www.youtube.com/watch?v=DaC5AWjmQXk
๐ธ Linux commands : Top
https://www.youtube.com/watch?v=RM7ck63mcHQ
***********************************************************************
#ESXI #VMware #Backup
Comments are closed.