Solved

Automatic Backup of ESXi 4 Host

Posted on 2011-09-18
8
649 Views
Last Modified: 2012-05-12
Hi,
Pls advise if there is a way i can do a backup of my ESXi hosts that run automatically. Ex, via a batch file or scripts etc.

Understand i can use vicfg-cfgbackup to do a backup. Jus need to know if i can automate this as id need to backup abount 20 hosts. Pls advise if the automated backup can help save the output to a file share server \\server1\d$ which is not an ESXi host ?

Regards
0
Comment
Question by:GGMU
  • 3
  • 3
  • 2
8 Comments
 
LVL 23

Expert Comment

by:Luciano Patrão
ID: 36558267
Hi

To automate schedule tasks in Linux you can use "cron" or eve "at" command.

See here how it works

http://www.simplehelp.net/2009/05/04/how-to-schedule-tasks-on-linux-using-the-at-command/

http://www.simplehelp.net/2008/11/17/increase-your-linuxunix-productivity-how-to-use-crontab/

But also:

http://www.jules.fm/Logbook/files/add_cron_job_vmware.html

But you can backup using PowerShell scripts and run it on Windows using PowerShell

Here is an example:

http://poshcode.org/1530

But you know that your ESXi do a auto backup?

Read this that may help you

http://deinoscloud.wordpress.com/2010/02/17/esxi-automatic-backups/

Hope this can help you

Jail
0
 
LVL 120

Accepted Solution

by:
Andrew Hancock (VMware vExpert / EE MVE^2) earned 500 total points
ID: 36559091
vicfg-cfgbackup is used to backup and restore the ESXi host configuration only.

If you want to perform Backups of the Virtual Machines on the host, please checkout my article.

VMware ESX/ESXi Backup Guide
0
 

Author Comment

by:GGMU
ID: 36565131
Hi,
You had mentioned that ESXi does an autobackup. If it does an autobackup, how do i verify that an hourly backup is done ? Am not too sure of using linux commands to access the root file, Any Tools i can use to access via GUI to see the where the backup file resides in etc ? Pls let me know which file stated that the backup is completed ? Thanks
0
Building an interactive eFuture classroom

Watch and learn how ATEN provided a total control system solution including seamless switching matrix switch, HDBaseT extenders, PDU, lighting control to build an interactive eFuture classroom.

 
LVL 23

Expert Comment

by:Luciano Patrão
ID: 36565986
Hi

As you see here in the link that I have added above

http://deinoscloud.wordpress.com/2010/02/17/esxi-automatic-backups/

You can check the files.

To connect to any host and do a browsing trough files/folders, you can use the WinSCP

http://winscp.net/eng/index.php

Or even Veeam FastSCP

http://www.veeam.com/vmware-esxi-fastscp.html

With this tools you can connect to the host and check the files(read the article witch files you need to check).

But to check the cron Schedule you should use Linux commands for a proper view.

Jail
0
 

Author Comment

by:GGMU
ID: 36566030
hI...tried using winscp but couldnt figure out the SSH port number in use by the ESXi host.
Any idea ? Thanks
0
 
LVL 120
ID: 36566050
22
0
 
LVL 120
ID: 36566051
Maybe SSH is not running or configured?
0
 
LVL 23

Expert Comment

by:Luciano Patrão
ID: 36566234
Hi

Yes if SSH is disable, you need to enable.

http://www.yellow-bricks.com/2008/08/10/howto-esxi-and-ssh/

Jail
0

Featured Post

Connect further...control easier

With the ATEN CE624, you can now enjoy a high-quality visual experience powered by HDBaseT technology and the convenience of a single Cat6 cable to transmit uncompressed video with zero latency and multi-streaming for dual-view applications where remote access is required.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

In this article, I am going to show you how to simulate a multi-site Lab environment on a single Hyper-V host. I use this method successfully in my own lab to simulate three fully routed global AD Sites on a Windows 10 Hyper-V host.
In this article we will learn how to backup a VMware farm using Nakivo Backup & Replication. In this tutorial we will install the software on a Windows 2012 R2 Server.
This Micro Tutorial steps you through the configuration steps to configure your ESXi host Management Network settings and test the management network, ensure the host is recognized by the DNS Server, configure a new password, and the troubleshooting…
This video shows you how easy it is to boot from ISO images for virtual machines with the ISO images stored on a local datastore on the ESXi host.

756 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question