VMware Cloud Community
slali
Contributor
Contributor
Jump to solution

Problems in backing up ESXi configuration

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 den
ied

Please advise which account needs access on my C:\temp folder.


1 Solution

Accepted Solutions
a_p_
Leadership
Leadership
Jump to solution

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é

View solution in original post

7 Replies
slali
Contributor
Contributor
Jump to solution

I am trying to backup ESXi 5 host.

0 Kudos
a_p_
Leadership
Leadership
Jump to solution

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é

aravinds3107
Virtuoso
Virtuoso
Jump to solution

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

If you find this or any other answer useful please consider awarding points by marking the answer correct or helpful |Blog: http://aravindsivaraman.com/ | Twitter : ss_aravind
slali
Contributor
Contributor
Jump to solution

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.??

0 Kudos
aravinds3107
Virtuoso
Virtuoso
Jump to solution

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

If you find this or any other answer useful please consider awarding points by marking the answer correct or helpful |Blog: http://aravindsivaraman.com/ | Twitter : ss_aravind
0 Kudos
MartinAmaro
Expert
Expert
Jump to solution

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

If you find this or any other answer useful please consider awarding points by marking the answer correct or helpful.
slali
Contributor
Contributor
Jump to solution

Thanks Martin.

Thanks to all the folks who provided the answers so quickly.

0 Kudos