#host-backup-config.sh
#LastUpdate: #11:30 2018.10.24
#################################
#Source: https://graspingtech.com/backup-vmware-esxi-6-5-configuration/
echo "How to Backup the ESXi Configuration"
echo "####################################"
cd /vmfs/volumes/disk_05_ssd_1000gb_ss860evo/HOST.BACKUP/
vim-cmd hostsvc/firmware/backup_config
cp /scratch/downloads/523b564d-e1e8-2a81-99b4-b90ae42ef2fb/* .
ls -lh
#THE-END
[root@srv118:/vmfs/volumes/5bcee239-c58d7222-236e-fcaa14e095ee/HOST.BACKUP] ls -lh
total 1024
-rwx------ 1 root root 18.2K Oct 24 04:30 configBundle-srv118.tgz
-rwxr-xr-x 1 root root 269 Oct 24 04:30 host-backup-config.sh
[root@srv118:/vmfs/volumes/5bcee239-c58d7222-236e-fcaa14e095ee/HOST.BACKUP]
#host-restore-config.sh
#LastUpdate: #11:30 2018.10.24
#################################
#Source: https://graspingtech.com/backup-vmware-esxi-6-5-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 connected you will need to transfer the backup archive to "/tmp/configBundle.tgz" on the host using a transfer utility
#+The host will reboot with the old configuration applied. You can now exit maintenance mode and use the host
echo "Restoring the ESXi Configuration"
echo "################################"
# cd /vmfs/volumes/disk_05_ssd_1000gb_ss860evo/HOST.BACKUP/
# vim-cmd hostsvc/firmware/backup_config
# cp /scratch/downloads/523b564d-e1e8-2a81-99b4-b90ae42ef2fb/* .
vim-cmd hostsvc/maintenance_mode_enter
vim-cmd hostsvc/firmware/restore_config /tmp/configBundle.tgz
ls -lh
#THE-END
No comments:
Post a Comment