The configuration of an ESX can be backed up very easily via SSH:
vim-cmd hostsvc/firmware/backup_config
The download URL is then generated by the script and the file is located in /scratch/downloads.
Source: KB2042141