ESX Command Line
Backup
vim-cmd hostsvc/firmware/sync_config
vim-cmd hostsvc/firmware/backup_config
You get a link to download the config bundle.
Restore
vim-cmd hostsvc/maintenance_mode_enter
vim-cmd hostsvc/firmware/restore_config /tmp/<name of the bundle>.tgz
Sources and useful links
How to back up and restore the ESXi host configuration