Backing up ESXi configuration


Backing up ESXi configuration

vMA

Backup:

Open a console session on vMA with vi-admin

Add the host as target to the vMA: vifp addserver <FQDN or IP Address>

vifptarget -s servername/ip, Enter password of ESXi.

Once the target has been set

vicfg-cfgbackup -s /location/BackupFileName (Note the -s stands for save)

Your host configuration is now saved.

pscp vi-admin@10.10.10.125:/home/vi-admin/esx/BackupFileName c:, (assuming pscp has been installed on your windows machine, vma ip is 10.10.10.125, and the backup file is stored at /home/vi-admin/esx)

the backup file will then be transferred to C:\Users\YourUserName\AppData\Local\VirtualStore

Restore:

You can restore the configuration using the following command from your vMA appliance:

vicfg-cfgbackup -l -server IPaddrOfHost /location/BackupFileName (Note the -l stands for load)

You will be prompted for a username and password and you will also have to type YES as the prompt will say.

Keep in mind you will have to reboot your host after the restore completes.

Vsphere CLi

Backup

Start -> all programs -> vmware cli

vicfg-cfgbackup.pl –server <insert IP address of name of server here> -s <Where you want it saved to>.

Restore:

the command is very simaler to the backup command. all that changes is one switch:
vicfg-cfgbackup.pl –server <server name or IP here> -l <where the file is located>

Advertisements
By Ctrl | Alt | Del Posted in Jobs

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s