The vim-cmd creates a new folder with a UID as name in /scratch/downloads, then exports the current host config to /scratch/downloads as configBundle-<hostname>.tgz and then presents it under a specific URL to be downloaded via the browser, get or curl command.
VMware vSphere ESXi 7.x
This is a normal behavior but to store the file permanently, would need to copy it to a different location.
For Example: Create a script with the below steps and it to create the config backup:
# vim-cmd hostsvc/firmware/sync_config# vim-cmd hostsvc/firmware/backup_config# find /scratch/downloads/ -name \*.tgz -exec cp {} /vmfs/volumes/<datastore>/<folder>/configBundle-$(hostname)_$(date +'%Y%m%d_%H%M%S').tgz \;
Aside from the above step there are NO other option or any way to "make the file stay for an extra few minutes" as it is impossible to reroute the resulting .tgz archive to a different location.