<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:clearspace="http://www.jivesoftware.com/xmlns/clearspace/rss" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:opensearch="http://a9.com/-/spec/opensearch/1.1/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>VMware Communities : Document List - Backup &amp; Recovery</title>
    <link>http://communities.vmware.com/community/vmtn/vsphere/datarecovery-vcb?view=documents</link>
    <description>Latest Documents in Backup &amp; Recovery</description>
    <language>en</language>
    <pubDate>Wed, 30 Sep 2009 05:53:13 GMT</pubDate>
    <generator>Clearspace 1.10.12 (http://jivesoftware.com/products/clearspace/)</generator>
    <dc:date>2009-09-30T05:53:13Z</dc:date>
    <dc:language>en</dc:language>
    <item>
      <title>VMware Data Recovery step-by-step for Newbie's</title>
      <link>http://communities.vmware.com/docs/DOC-10834</link>
      <description />
      <category domain="http://communities.vmware.com/tags?communityID=3066">vmware</category>
      <category domain="http://communities.vmware.com/tags?communityID=3066">vsphere</category>
      <category domain="http://communities.vmware.com/tags?communityID=3066">data_recovery</category>
      <category domain="http://communities.vmware.com/tags?communityID=3066">backup</category>
      <pubDate>Wed, 30 Sep 2009 05:49:26 GMT</pubDate>
      <guid>http://communities.vmware.com/docs/DOC-10834</guid>
      <dc:date>2009-09-30T05:49:26Z</dc:date>
      <clearspace:dateToText>1 month, 3 weeks ago</clearspace:dateToText>
      <clearspace:replyCount>1</clearspace:replyCount>
    </item>
    <item>
      <title>Backup solutions for VMware ESXi</title>
      <link>http://communities.vmware.com/docs/DOC-10780</link>
      <description>&lt;h2&gt;Free solutions &lt;/h2&gt;
&lt;br /&gt;
&lt;b&gt;ghettoVCB&lt;/b&gt; &lt;br /&gt;
&lt;a class="jive-link-wiki" href="http://communities.vmware.com/docs/DOC-8760"&gt;ghettoVCB.sh - Free alternative for backing up VM's for ESX(i) 3.5 and 4.0+&lt;/a&gt; &lt;br /&gt;
&lt;a href="http://communities.vmware.com/docs/DOC-9843" class="jive-link-wiki"&gt;ghettoVCBg2 - Free alternative for backing up VMs in ESX(i) 3.5 and 4.x (no SSH console required!)&lt;/a&gt; &lt;br /&gt;
This script performs backups of virtual machines residing on ESX(i) 3.5/4.0+ servers using methodology similar to VMware's VCB tool. &lt;br /&gt;
It's created and well maintained by &lt;a href="http://communities.vmware.com/people/lamw" class="jive-link-profile"&gt;lamw&lt;/a&gt; &lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Other script based solutions&lt;/b&gt; &lt;br /&gt;
&lt;a href="http://communities.vmware.com/docs/DOC-8881" class="jive-link-wiki"&gt;Another ESXi backup script&lt;/a&gt; &lt;br /&gt;
&lt;a class="jive-link-external" href="http://communities.vmware.com/blogs/gabrielmaciel/2008/12/08/free-vm-backup-alternative-for-esx-35-and-esxi"&gt;http://communities.vmware.com/blogs/gabrielmaciel/2008/12/08/free-vm-backup-alternative-for-esx-35-and-esxi&lt;/a&gt; &lt;br /&gt;
&lt;a href="http://communities.vmware.com/message/1031280#1031280" class="jive-link-message"&gt;Re: Free ESXi Backup Solution for Windows&lt;/a&gt; &lt;br /&gt;
&lt;a href="http://communities.vmware.com/thread/225865" class="jive-link-thread"&gt;Any new backup VM Solutions - ESX 3.5&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;VMware Converter Standalone&lt;/b&gt; &lt;br /&gt;
&lt;a class="jive-link-external" href="http://www.vmware.com/products/converter/"&gt;http://www.vmware.com/products/converter/&lt;/a&gt; &lt;br /&gt;
Is not designed as a backup solution, but could be used also for this purpose. &lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;File copy solutions&lt;/b&gt; &lt;br /&gt;
For a powered off VM is possible to simple copy all the files in the VM folder. &lt;br /&gt;
To use also with a powered on VM you need to do create a VMware snapshot to unlock the *-flat.vmdk files &lt;br /&gt;
To make this copy several tools could be used: &lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;Datastore browser (directly from VIC or vSphere Client) &lt;/li&gt;
&lt;li&gt;SCP / Veeam fastSCP (need to enable SSH access: &lt;a class="jive-link-external" href="http://www.yellow-bricks.com/2008/08/10/howto-esxi-and-ssh/"&gt;http://www.yellow-bricks.com/2008/08/10/howto-esxi-and-ssh/&lt;/a&gt;)&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
&lt;hr /&gt;
&lt;h2&gt;VMware solutions (need license) &lt;/h2&gt;
&lt;br /&gt;
&lt;b&gt;VMware Consolidated Backup (VCB)&lt;/b&gt; &lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;VMware Data Recovery (VDR)&lt;/b&gt; &lt;br /&gt;
&lt;a class="jive-link-external" href="http://www.vmware.com/products/vcenter-data-recovery/"&gt;http://www.vmware.com/products/vcenter-data-recovery/&lt;/a&gt;&lt;hr /&gt;
&lt;h2&gt;Other commercial solutions&lt;/h2&gt;
&lt;br /&gt;
&lt;b&gt;Veeam Backup &amp;#38; Replication&lt;/b&gt; &lt;br /&gt;
&lt;a class="jive-link-external" href="http://www.veeam.com/vmware-esx-backup.html"&gt;http://www.veeam.com/vmware-esx-backup.html&lt;/a&gt; &lt;br /&gt;
&lt;a class="jive-link-external" href="http://veeam.com/vmware-esx-server/backup/documents/Veeam_Backup_User_Guide_3.0.pdf"&gt;http://veeam.com/vmware-esx-server/backup/documents/Veeam_Backup_User_Guide_3.0.pdf&lt;/a&gt; &lt;br /&gt;
Veeam Backup &amp;#38; Replication is the first enterprise-ready solution that combines backup and replication in a single product for fast recovery of your VMware ESX servers. Backup is easy, but recovery can be hard – and that’s when the clock is ticking loudest. But with Veeam Backup &amp;#38; Replication, fast recovery is easier than you ever thought possible. &lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Vizioncore vRanger Pro 3.3&lt;/b&gt; &lt;br /&gt;
&lt;a class="jive-link-external" href="http://www.vizioncore.com/products/vRangerPro/vRanger3x.php"&gt;http://www.vizioncore.com/products/vRangerPro/vRanger3x.php&lt;/a&gt;&lt;br /&gt;
&lt;a class="jive-link-external" href="http://www.vizioncore.com/products/vRangerPro/documents/vRangerProUserManual_Eng.pdf"&gt;http://www.vizioncore.com/products/vRangerPro/documents/vRangerProUserManual_Eng.pdf&lt;/a&gt;&lt;br /&gt;
Vizioncre vRanger Pro 3.3 is the ideal solution for customers wanting the same reliability of vRanger Pro 4.0 DPP but require features that are not yet supported in the 4.0 version. Supports VMware 3.X, 4.0 (vSphere) and ESXi.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Trilead VM Explorer&lt;/b&gt; &lt;br /&gt;
&lt;a class="jive-link-external" href="http://www.trilead.com/"&gt;http://www.trilead.com/&lt;/a&gt; &lt;br /&gt;
Trilead VM Explorer is a management tool that eases management, backup and disaster recovery tasks in your VMware ESX environment. Backups can be stored to ESX, Windows, Linux and FreeBSD based storage platforms or directly to a SAN. VM Explorer has only to be licenced once for your infrastructure, you don't have to pay any fees per ESX Server, CPU, or anything similar.&lt;hr /&gt;
&lt;h2&gt;Commercial solutions that may support ESXi in the future releases&lt;/h2&gt;
&lt;br /&gt;
&lt;b&gt;esXpress&lt;/b&gt; &lt;br /&gt;
&lt;a class="jive-link-external" href="http://phdvirtual.com/products/esxpress-virtual-backup"&gt;http://phdvirtual.com/products/esxpress-virtual-backup&lt;/a&gt; &lt;br /&gt;
esXpress radically alters the notion of how to protect data in virtual infrastructures in one simple way: we use the virtual infrastructure to backup and restore itself!&lt;br /&gt;
esXpress v3.6 is Compatible with VMware ESX v3, v3.5 and vSphere4.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Vizioncore vRanger Pro 4.0&lt;/b&gt; &lt;br /&gt;
&lt;a class="jive-link-external" href="http://www.vizioncore.com/products/vRangerPro/"&gt;http://www.vizioncore.com/products/vRangerPro/&lt;/a&gt; &lt;br /&gt;
&lt;a class="jive-link-external" href="http://www.vizioncore.com/products/vRangerPro/documents/vRangerPro-DPP-FAQ.pdf"&gt;http://www.vizioncore.com/products/vRangerPro/documents/vRangerPro-DPP-FAQ.pdf&lt;/a&gt; &lt;br /&gt;
vRanger Pro Data Protection Platform (DPP) is the market-leading backup, recovery and backup management solution for virtual environments. The 4.0 release is the next generation of vRanger Pro which features a completely redesigned architecture, including plug-n-play modularity and a service-based architecture. VMware ESX3.x and VMware ESX 4.x upon initial release. Future releases include support for: VMware ESXi 3.x, VMware ESX &amp;#38; ESXi 3.x VCB, VMware ESXi 4.x, VMware ESX &amp;#38; ESXi 4.x VCB.&lt;br /&gt;
&lt;br /&gt;
&lt;hr /&gt;
&lt;h2&gt;The free ESXi "problem" &lt;/h2&gt;
With the free version of ESXi then you cannot actually use a third party tool to perform any backups. This is against your EULA. If it is the paid version of ESXi go for it.&lt;br /&gt;
So be sure which you are using to be sure you do not violate the EULA.&lt;br /&gt;
&lt;br /&gt;
As for other mechanisms, you can snapshot the VM and then copy the data via the vSphere Client/VIC as well. There is also VMware Converter. These tools do not violate the EULA.&lt;br /&gt;
&lt;br /&gt;
See also: &lt;a class="jive-link-external" href="http://www.virtualizationpractice.com/blog/?p=274"&gt;http://www.virtualizationpractice.com/blog/?p=274&lt;/a&gt; - VMware Forcing Third Parties to NOT Sell Products for Free ESXi&lt;br /&gt;
&lt;br /&gt;
&lt;hr /&gt;
&lt;h2&gt;Storage based solutions &lt;/h2&gt;
&lt;br /&gt;
If you have a stora NFS base, then file copy could be simple...&lt;br /&gt;
For other shared storage you can use storage snapshots.&lt;br /&gt;
&lt;br /&gt;
&lt;hr /&gt;
&lt;h2&gt;Backup ESXi configuration &lt;/h2&gt;
&lt;br /&gt;
You can use the RCLI to make a backup configuration of your ESXi host using &lt;br /&gt;
esxcfg-cfgbackup &lt;br /&gt;
You can find more information for the RCLI documentation here: &lt;a class="jive-link-external" href="http://www.vmware.com/pdf/vi3_35/esx_3/r35u2/vi3_35_25_u2_rcli.pdf"&gt;http://www.vmware.com/pdf/vi3_35/esx_3/r35u2/vi3_35_25_u2_rcli.pdf&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
There are also other ways to do a backup of ESXi configuration, see:&lt;br /&gt;
&lt;a class="jive-link-external" href="http://www.r71.nl/index.php/kb/technical/212-vmware-esxi-configuration-backup"&gt;http://www.r71.nl/index.php/kb/technical/212-vmware-esxi-configuration-backup&lt;/a&gt;&lt;br /&gt;
&lt;a class="jive-link-external" href="http://support.dell.com/support/edocs/software/eslvmwre/DG/ESXi_3_5_U4/HTML/app_c.htm"&gt;http://support.dell.com/support/edocs/software/eslvmwre/DG/ESXi_3_5_U4/HTML/app_c.htm&lt;/a&gt;</description>
      <category domain="http://communities.vmware.com/tags?communityID=3066">backup</category>
      <category domain="http://communities.vmware.com/tags?communityID=3066">esxi</category>
      <category domain="http://communities.vmware.com/tags?communityID=3066">esxi4</category>
      <pubDate>Wed, 16 Sep 2009 05:44:17 GMT</pubDate>
      <guid>http://communities.vmware.com/docs/DOC-10780</guid>
      <dc:date>2009-09-16T05:44:17Z</dc:date>
      <clearspace:dateToText>1 week, 4 days ago</clearspace:dateToText>
      <clearspace:replyCount>2</clearspace:replyCount>
    </item>
    <item>
      <title>VDR</title>
      <link>http://communities.vmware.com/docs/DOC-10670</link>
      <description />
      <category domain="http://communities.vmware.com/tags?communityID=3066">vdr</category>
      <pubDate>Tue, 01 Sep 2009 13:23:34 GMT</pubDate>
      <guid>http://communities.vmware.com/docs/DOC-10670</guid>
      <dc:date>2009-09-01T13:23:34Z</dc:date>
      <clearspace:dateToText>2 months, 3 weeks ago</clearspace:dateToText>
    </item>
    <item>
      <title>Simple VCB Script for Scheduled Tasks</title>
      <link>http://communities.vmware.com/docs/DOC-10314</link>
      <description>I wrote this because of weak TSM controls:&lt;br /&gt;
&lt;br /&gt;
servers.txt should have this format:&lt;br /&gt;
&lt;p /&gt;
day fqdn&lt;br /&gt;
Mon server.domain.com&lt;br /&gt;
Tue server2.domain.com&lt;br /&gt;
&lt;p /&gt;
REM #Set the path to include cygwin and TSM&lt;br /&gt;
path=%path%;D:\UserApps\VMware\VMWARE~1\Batch;D:\SystemApps\Tivoli\TSM\cygwin\&lt;br /&gt;
&lt;p /&gt;
REM #Remove previous backups&lt;br /&gt;
rm -rf e:\mnt&lt;br /&gt;
mkdir e:\mnt&lt;br /&gt;
rm -f d:\userapps\TSM\PreScript.bat&lt;br /&gt;
&lt;p /&gt;
REM #Get todays day of the week&lt;br /&gt;
date /t | gawk '{print $1}' &amp;gt; %temp%\day.txt&lt;br /&gt;
set /p day= &amp;lt; %temp%\day.txt&lt;br /&gt;
del %temp%\day.txt&lt;br /&gt;
&lt;p /&gt;
REM #Output the backup script&lt;br /&gt;
echo path=%path%;D:\UserApps\VMware\VMWARE~1\Batch;D:\SystemApps\Tivoli\TSM\cygwin\ &amp;gt;d:\userapps\TSM\PreScript.bat&lt;br /&gt;
&lt;p /&gt;
type d:\userapps\TSM\servers.txt | grep %day% | grep -v # | gawk '{print "cmd.exe /c pre-command.bat " $1 " " $2 "-FullVM" "\r"}' &amp;gt;&amp;gt; d:\userapps\TSM\PreScript.bat&lt;br /&gt;
&lt;p /&gt;
REM #Start the backup process&lt;br /&gt;
D:\UserApps\TSM\PreScript.bat</description>
      <pubDate>Wed, 08 Jul 2009 19:01:21 GMT</pubDate>
      <guid>http://communities.vmware.com/docs/DOC-10314</guid>
      <dc:date>2009-07-08T19:01:21Z</dc:date>
      <clearspace:dateToText>4 months, 2 weeks ago</clearspace:dateToText>
    </item>
    <item>
      <title>VCB Backup Script written in VBS</title>
      <link>http://communities.vmware.com/docs/DOC-10331</link>
      <description>This is a script that will use VMWare Consolidated Backups (VCB) to backup all of the VMs being managed by Virtual Center. It does afew things. First it pulls a list of all VM machines from Virtual Center. Then it loops through them and does either a full image backup or it will mount the file system (depending on how your VCB config is setup). This script will log to the Big Brother format and has a production and debug mode. Edit the first few lines first to meet your environment.</description>
      <category domain="http://communities.vmware.com/tags?communityID=3066">backup</category>
      <category domain="http://communities.vmware.com/tags?communityID=3066">script</category>
      <category domain="http://communities.vmware.com/tags?communityID=3066">vbs</category>
      <category domain="http://communities.vmware.com/tags?communityID=3066">consolidated_backup</category>
      <category domain="http://communities.vmware.com/tags?communityID=3066">backups</category>
      <category domain="http://communities.vmware.com/tags?communityID=3066">scheduled_tasks</category>
      <pubDate>Wed, 08 Jul 2009 18:54:38 GMT</pubDate>
      <author>samspade@u.washington.edu</author>
      <guid>http://communities.vmware.com/docs/DOC-10331</guid>
      <dc:date>2009-07-08T18:54:38Z</dc:date>
      <clearspace:dateToText>4 months, 2 weeks ago</clearspace:dateToText>
    </item>
    <item>
      <title>Backup DOS script for VCB and ntbackup</title>
      <link>http://communities.vmware.com/docs/DOC-10271</link>
      <description>&lt;h1&gt;A Simple DOS script to backup all guests on a specified host using VCB and ntbackup&lt;/h1&gt;
Hopefully someone will find this useful!&lt;br /&gt;
I tired of looking for a reasonably priced backup solution to go with VCB (which I think is great!) so got down to pulling together a lot of googling to create a reasonable batch script for a simple manual backup rotation.&lt;br /&gt;
&lt;br /&gt;
This is effectively a disk-disk-tape solution, although by 'tape' any storage device available to ntbackup could be used. You could also modify the script to omit the ntbackup parts and keep the vcb backup files&lt;br /&gt;
&lt;br /&gt;
The calls the ntbackup are specifically dewsigned to avoid any tape management. The tape currently in the drive is erased, and the backup is written. It is ejected at the end of the operation so that it can be manually rotated.&lt;br /&gt;
&lt;br /&gt;
Hell you can modify if however you like - just share it back to the community if you make it do something nice!&lt;br /&gt;
&lt;h2&gt;Pre-Requisites for Use&lt;/h2&gt;
&lt;h3&gt;Essentials&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;Read the 'Terms of Use' for Community sample code! No warranty is offered on this script, it is for your own reference. If you choose to use it for production use, I cannot guarantee your backup. .. Use entirely at your own risk&lt;/li&gt;
&lt;li&gt;No really - go and read the terms of use&lt;/li&gt;
&lt;li&gt;A Windows OS VCB Backup proxy machine, with VCB fully installed&lt;/li&gt;
&lt;li&gt;Enough disk space on this server to backup your largest guest&lt;/li&gt;
&lt;li&gt;A valid license for VCB on your ESX host&lt;/li&gt;
&lt;li&gt;A working backup device that can be used for backup by ntbackup&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
&lt;h3&gt;Nice to Haves&lt;/h3&gt;
I use TrapGen (&lt;a class="jive-link-external" href="http://www.ncomtech.com/trapgen.html"&gt;http://www.ncomtech.com/trapgen.html&lt;/a&gt;) to fire an SNMP trap to my network management station when the backup fails. You could replace this with any other command to make an alert, it just so happens my NMS like SNMP.&lt;br /&gt;
&lt;br /&gt;
Watching the logs is made easy by use of baretail (&lt;a class="jive-link-external" href="http://www.baremetalsoft.com/baretail"&gt;http://www.baremetalsoft.com/baretail&lt;/a&gt;) - just associate this useful proggy with .log files and double-click the log.&lt;br /&gt;
&lt;br /&gt;
&lt;h2&gt;Installation&lt;/h2&gt;
Add a user 'backup' to your ESX host with appropriate rights, set a nasty obfuscated password&lt;br /&gt;
Add the environment variable vmpwd to your VCB backup proxy machine, setting it's&lt;br /&gt;
value to the password&lt;br /&gt;
Make a working directory on your VCB backup proxy machine. For example C:\Backup&lt;br /&gt;
Make a subdirectory script&lt;br /&gt;
Make a subdirectory vcbmount (your temporary backup storage before going to tape)&lt;br /&gt;
Create a script file backup.cmd and paste in the code&lt;br /&gt;
Use Task Scheduler or similar to make a job, redirecting output to a backup.log file in your backup directory&lt;br /&gt;
You can test by doing a run now on your task&lt;br /&gt;
Change the parameters at the top of the script to appropriate values for your system&lt;br /&gt;
Find &lt;b&gt;LTO Ultrium&lt;/b&gt; and &lt;b&gt;Quantum LTO -&lt;/b&gt; change these to your tape library name. For some reason I haven't managed to parameterise these &lt;img class="jive-emoticon" border="0" src="http://communities.vmware.com/images/emoticons/sad.gif" alt=":(" /&gt;&lt;br /&gt;
If you're not using network based disk method, change the -m nbd parameter appropriately&lt;br /&gt;
&lt;br /&gt;
If you want to use TrapGen.exe then put the executable in your script subfolder, and create another command file backup_failed.cmd  to send the trap according&lt;br /&gt;
&lt;br /&gt;
to your requirements. Alternatively make this script take whatever alert action you require.&lt;br /&gt;
&lt;br /&gt;
&lt;h2&gt;The Script&lt;/h2&gt;
&lt;pre class="jive-pre"&gt;&lt;code class="jive-code jive-plain"&gt;::back up all guests on a specified ESX host listed in a control file populated by listing guests on
the host
@echo off
set debug=OFF
for /f &amp;quot;Tokens=1-4 Delims=/ &amp;quot; %%i in ('date /t') do set dt=%%i-%%j-%%k-%%l
for /f &amp;quot;Tokens=1&amp;quot; %%i in ('time /t') do set tm=-%%i
set tm=%tm::=-%
set dtt=%dt%%tm%
set skipguest=:
rem -- SET YOUR VALUES FOR THE FOLLOWING
set bd=C:\Backup
set esxhost=myesxhost
echo --%date% %time% - Starting Backup script for ESX host %esxhost% at %dtt%
IF &amp;quot;%debug%&amp;quot;==&amp;quot;ON&amp;quot; (echo DEBUG MODE ACTIVE - NO ACTIONS WILL BE TAKEN)
echo   Refreshing RSM library
IF &amp;quot;%debug%&amp;quot;==&amp;quot;OFF&amp;quot; (rsm.exe refresh /LF&amp;quot;Quantum LTO 2 Tape Drive&amp;quot;)
echo --%date% %time% - Discovering Guest list for ESX host %esxhost%
&amp;quot;C:\Program Files\VMware\VMware Consolidated Backup Framework\vcbvmname&amp;quot; -h %esxhost% -u backup -p
%vmpwd% -s Any -L 0 &amp;gt; %bd%\script\%esxhost%_vm_list.txt
echo   Making initial backup of scripts and RSM database
::the next command is REALLY fussy don't fiddle with it if possible!
IF &amp;quot;%debug%&amp;quot;==&amp;quot;OFF&amp;quot; (ntbackup.exe backup &amp;quot;@%bd%\script\InitialLocal.bks&amp;quot; /n &amp;quot;TAPE-%esxhost%-%dtt%&amp;quot;
/d &amp;quot;SET-%esxhost%-%dtt%&amp;quot; /snap:on /v:no /r:no /rs:no /hc:on /m normal /j &amp;quot;JOB&amp;quot; /l:f /p &amp;quot;LTO Ultrium&amp;quot;
/um)
if ERRORLEVEL 1 GOTO :errexit
echo   Entering VM Backup loop
for /F &amp;quot;skip=10 tokens=1,2 delims=:&amp;quot; %%i IN (%bd%\script\%esxhost%_vm_list.txt) DO (
IF &amp;quot;%%i%&amp;quot;==&amp;quot;name&amp;quot; (
echo     %date% %time% - Starting VCB backup of guest %%j
IF &amp;quot;%debug%&amp;quot;==&amp;quot;OFF&amp;quot; (
IF EXIST %bd%\vcbmount\%%j (RD /S /Q %bd%\vcbmount\%%j)
&amp;quot;C:\Program Files\VMware\VMware Consolidated Backup Framework\vcbMounter&amp;quot; -h %esxhost% -u backup
-p %vmpwd% -a name:%%j -r %bd%\vcbmount\%%j -t fullvm -m nbd
)
if NOT ERRORLEVEL 1 (
echo     %date% %time% - Starting backup to tape of guest %%j
IF &amp;quot;%debug%&amp;quot;==&amp;quot;OFF&amp;quot; (ntbackup.exe backup %bd%\vcbmount\%%j /a /t &amp;quot;TAPE-%esxhost%-%dtt%&amp;quot; /snap
:off /v:no /r:no /hc:on /m normal /l:f )
if NOT ERRORLEVEL 1 (
echo     %date% %time% - successful tape backup of guest %%j
) ELSE (
echo     %date% %time% - failed tape backup of guest %%j
set skipguest=%skipguest%,%%j
)
) ELSE (
echo     %date% %time% - Failed VCB snapshot of guest %%j
set skipguest=%skipguest%,%%j
)
IF &amp;quot;%debug%&amp;quot;==&amp;quot;OFF&amp;quot; (IF EXIST %bd%\vcbmount\%%j (RD /S /Q %bd%\vcbmount\%%j))
)
)
echo   %date% %time% - Ended VM Backup loop
IF &amp;quot;%skipguest%&amp;quot;==&amp;quot;&amp;quot; (
echo --%date% %time% - Generating SNMP trap due to skipped guest
CALL backup_failed.cmd
)
IF &amp;quot;%debug%&amp;quot;==&amp;quot;ON&amp;quot; (
echo IN DEBUG MODE - FORCING SNMP TRAP
CALL backup_failed.cmd
)
echo   Ejecting tape
IF &amp;quot;%debug%&amp;quot;==&amp;quot;OFF&amp;quot; (rsm.exe eject /PF&amp;quot;TAPE-%esxhost%-%dtt% - 1&amp;quot; /astart)
echo   Guests not backup up or skipped%skipguest%
echo --%date% %time% - Ending Backup script for ESX host %esxhost%
goto :finish

:errexit
echo There was an error existstatus returned from the initial backup command
echo --%date% %time% - Generating SNMP trap due to skipped guest
CALL backup_failed.cmd

:finish
&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;
&lt;p /&gt;
&lt;h2&gt;Known Issues&lt;/h2&gt;
The timestamp written to the logs doesn't update - really need to make a function call for this&lt;br /&gt;
&lt;br /&gt;
Couldn't parameterise the tape library name and similar parameter for the RSM refresh for some reason - I blame the ntbackup command as this is very fussy!&lt;br /&gt;
&lt;br /&gt;
NBD method not parameterised</description>
      <category domain="http://communities.vmware.com/tags?communityID=3066">backup</category>
      <category domain="http://communities.vmware.com/tags?communityID=3066">vcb</category>
      <category domain="http://communities.vmware.com/tags?communityID=3066">data_recovery</category>
      <category domain="http://communities.vmware.com/tags?communityID=3066">vsphere4</category>
      <category domain="http://communities.vmware.com/tags?communityID=3066">esx</category>
      <pubDate>Thu, 25 Jun 2009 16:29:47 GMT</pubDate>
      <guid>http://communities.vmware.com/docs/DOC-10271</guid>
      <dc:date>2009-06-25T16:29:47Z</dc:date>
      <clearspace:dateToText>4 months, 4 weeks ago</clearspace:dateToText>
      <clearspace:replyCount>2</clearspace:replyCount>
    </item>
  </channel>
</rss>

