Check the vim-cmd command-line, it's the easier way to do:
vim-cmd hostsvc/firmware/sync_config
vim-cmd hostsvc/firmware/backup_config
Just remember to copy/download the generated backup file ASAP (*.local.tgz), because it doesn't remain forever. For learning other methods, see the following link:
VMware Knowledge Base