I am using vCLI to perform the ESXi host backup on my Windows 7 PC. I am using the following command:
"c:\Program Files (x86)\VMware\VMware vSphere CLI\bin>vicfg-cfgbackup.pl --server
10.8.7.73 -s c:\temp"
And, getting the following error:
Saving firmware configuration to c:\temp ...
GET https://10.8.7.73/downloads/configBundle-xyx.net.tgz unsuc
cessful : 500 Cannot write to 'c:\temp': Permission denied
Please advise which account needs access on my C:\temp folder.
Unless I'm mistaken the command expects a backup file rather than a backup directory as the target. Try:
"C:\Program Files (x86)\VMware\VMware vSphere CLI\bin>vicfg-cfgbackup.pl --server 10.8.7.73 -s c:\temp\ESXi-Backup.bak"
André
I am trying to backup ESXi 5 host.
Unless I'm mistaken the command expects a backup file rather than a backup directory as the target. Try:
"C:\Program Files (x86)\VMware\VMware vSphere CLI\bin>vicfg-cfgbackup.pl --server 10.8.7.73 -s c:\temp\ESXi-Backup.bak"
André
Try mentioning the backup file name
c:\Program Files (x86)\VMware\VMware vSphere CLI\bin>vicfg-cfgbackup.pl --server 10.8.7.73 -s c:\temp\backup.txt
Thanks.
I can see the backup.txt file.
Now, do we just need to change the extension to .tgz to do the restore if needed.??
Thanks.
I can see the backup.txt file.
Now, do we just need to change the extension to .tgz to do the restore if needed.??
I think you can use txt file like that. Check vicfg-cfgbackup for examples
C:\Program Files (x86)\VMware\VMware vSphere CLI\bin>vicfg-cfgbackup.pl --server 10.8.7.73 -l c:\temp\backup.txt
Restore a configuration previously saved to C:\backup.txt to the host:
vicfg-cfgbackup <conn_options> -l C:\backup.txt
Check the KB
"
The following examples assume you are specifying connection options, either explicitly or, for example, by specifying the server, user name, and password. Run vicfg-cfgbackup --help
for a list of common options including connection options.
Back up the host configuration to the file C:\backup.txt:
vicfg-cfgbackup <conn_options> -s C:\backup.txt
Reset the host, that is, restore to factory settings:
vicfg-cfgbackup <conn_options> -r
Restore a configuration previously saved to C:\backup.txt to the host:
vicfg-cfgbackup <conn_options> -l C:\backup.txt
Restore a configuration from C:\backup.txt without prompting for user confirmation:
vicfg-cfgbackup <conn_options> -l C:\backup.txt -q
"
http://www.vmware.com/support/developer/vcli/vcli41/doc/reference/vicfg-cfgbackup.html
Thanks Martin.
Thanks to all the folks who provided the answers so quickly.