<?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: Message List - Backup vbscript for VMWare Server: Only ~1min downtime</title>
    <link>http://communities.vmware.com/community/vmtn/server/server1?view=discussions</link>
    <description>Most recent forum messages</description>
    <language>en</language>
    <pubDate>Tue, 30 Dec 2008 13:06:47 GMT</pubDate>
    <generator>Clearspace 1.10.12 (http://jivesoftware.com/products/clearspace/)</generator>
    <dc:date>2008-12-30T13:06:47Z</dc:date>
    <dc:language>en</dc:language>
    <item>
      <title>Re: Backup vbscript for VMWare Server: Only ~1min downtime</title>
      <link>http://communities.vmware.com/message/1133102?tstart=0#1133102</link>
      <description>&lt;br /&gt;
First off I want to say this is a great looking script.  &lt;br /&gt;
&lt;p /&gt;
I downloaded this script but am having some issues.  The script runs through and all seems ok however the shadow drive is not made even though it says it is made.  I am attaching my log file.&lt;br /&gt;
&lt;p /&gt;
thanks in advance for any assistance</description>
      <pubDate>Tue, 30 Dec 2008 13:06:46 GMT</pubDate>
      <author>solsie</author>
      <guid>http://communities.vmware.com/message/1133102?tstart=0#1133102</guid>
      <dc:date>2008-12-30T13:06:46Z</dc:date>
      <clearspace:dateToText>10 months, 4 weeks ago</clearspace:dateToText>
    </item>
    <item>
      <title>Re: Backup vbscript for VMWare Server: Only ~1min downtime</title>
      <link>http://communities.vmware.com/message/1082685?tstart=0#1082685</link>
      <description>&lt;br /&gt;
I just want to post a thank you for this script!  Fantastic work.&lt;br /&gt;
&lt;p /&gt;
I have set this up on 2x 2003 hosts and have it scripted to backup 3-4 VM's on each.  It seems to be working quite well but I have occassionally found that after shutting down the relevant VM that the O:\ drive isn't created (although the log file indicates it was, it never appears (watching in explorer)) and the VM fires backup but of course the zip file fails to be created (lack of source data of course).   Running exactly the same kick off script again it goes through the process again but this time the O:\ drive is made available before the zip file is attempted to be created and it runs perfectly.&lt;br /&gt;
&lt;p /&gt;
Any suggestions?  I wondered if I wasn't using the correct version of the vshadow.exe (located in the same directory as the scripts) but it hasn't made any difference.  I would love to set this script up automatically but with it being a bit sporadic I'm not sure if I can do it as yet.&lt;br /&gt;
&lt;p /&gt;
 Regards,&lt;br /&gt;
&lt;p /&gt;
 T.</description>
      <pubDate>Thu, 23 Oct 2008 21:49:06 GMT</pubDate>
      <author>TJWood</author>
      <guid>http://communities.vmware.com/message/1082685?tstart=0#1082685</guid>
      <dc:date>2008-10-23T21:49:06Z</dc:date>
      <clearspace:dateToText>1 year, 1 month ago</clearspace:dateToText>
    </item>
    <item>
      <title>Re: Backup vbscript for VMWare Server: Only ~1min downtime</title>
      <link>http://communities.vmware.com/message/962351?tstart=0#962351</link>
      <description>&lt;br /&gt;
is there anyway to backup more than 1 vm at a time? basically i have around 7 or 8 vm's to backup and they are pretty big in size, about 750gb in the virtual machines directory. i've tried running scripts at the same time and have tried waiting for one script to start zipping the folder in the backup directory and then kicking off the backup of another vm but keep getting the message "The Backup Script for VMware Server couldn't create a volume shadow or couldn't copy the files from the volume shadow." &lt;br /&gt;
&lt;p /&gt;
 is there anyway i can edit the script so that it will allow simultaneous backups of vm's?</description>
      <pubDate>Wed, 04 Jun 2008 05:36:20 GMT</pubDate>
      <author>bobstothard</author>
      <guid>http://communities.vmware.com/message/962351?tstart=0#962351</guid>
      <dc:date>2008-06-04T05:36:20Z</dc:date>
      <clearspace:dateToText>1 year, 5 months ago</clearspace:dateToText>
    </item>
    <item>
      <title>Re: Backup vbscript for VMWare Server: Only ~1min downtime</title>
      <link>http://communities.vmware.com/message/903855?tstart=0#903855</link>
      <description>&lt;br /&gt;
I finally figured out all my syntax issues, and why Gigaguy's version wasn't working on XP even after I found it. &lt;br /&gt;
&lt;p /&gt;
(The statement &lt;i&gt;'This should be identical to "DefaultCopyPath" but with a different drive letter. This is the drive letter where VShadow will be mounted (O: in this case)&lt;/i&gt; is actually incorrect and should be &lt;i&gt;identical to DefaultVMPath.)&lt;/i&gt;&lt;br /&gt;
&lt;p /&gt;
So I honestly have a need to have this set of code &lt;b&gt;work&lt;/b&gt; both ways (XP/2003) as I use XP as a staging/testing area for some VMs rather than blowing $$ on a server license to host it.&lt;br /&gt;
&lt;p /&gt;
 I'm gonna take a shot at melding the code but I am totally NOT a vb programmer so it will be ugly I'm sure.</description>
      <pubDate>Thu, 03 Apr 2008 00:11:54 GMT</pubDate>
      <author>Nummagumma</author>
      <guid>http://communities.vmware.com/message/903855?tstart=0#903855</guid>
      <dc:date>2008-04-03T00:11:54Z</dc:date>
      <clearspace:dateToText>1 year, 7 months ago</clearspace:dateToText>
    </item>
    <item>
      <title>Re: Backup vbscript for VMWare Server: Only ~1min downtime</title>
      <link>http://communities.vmware.com/message/901310?tstart=0#901310</link>
      <description>&lt;br /&gt;
I've tried a few different paths for vShadowCopyPath and I get the same error no matter what I use:&lt;br /&gt;
&lt;p /&gt;
2008-03-31_17:24:46 Files will be copied to O:\BLV99TEST-VM&lt;br /&gt;
2008-03-31_17:24:46 The VM is approximately 10.39 GB.&lt;br /&gt;
2008-03-31_17:24:46 **ERROR**: There is not enough free space to copy files &lt;br /&gt;
2008-03-31_17:24:46 Successfully deleted VShadow Drive  &lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
VShadowCopyPath = "c:\backups\virtual machines"&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
What am I missing about this syntax here?</description>
      <pubDate>Tue, 01 Apr 2008 00:28:00 GMT</pubDate>
      <author>Nummagumma</author>
      <guid>http://communities.vmware.com/message/901310?tstart=0#901310</guid>
      <dc:date>2008-04-01T00:28:00Z</dc:date>
      <clearspace:dateToText>1 year, 7 months ago</clearspace:dateToText>
    </item>
    <item>
      <title>Re: Backup vbscript for VMWare Server: Only ~1min downtime</title>
      <link>http://communities.vmware.com/message/901267?tstart=0#901267</link>
      <description>&lt;br /&gt;
For other newbs like me who scratch their heads around the VShadow pieces, you need to download from here:&lt;br /&gt;
&lt;p /&gt;
&lt;a class="jive-link-external" href="http://www.microsoft.com/downloads/details.aspx?FamilyID=0b4f56e4-0ccc-4626-826a-ed2c4c95c871&amp;#38;displaylang=en&amp;#38;Hash=MOGBEU0c5e9GVX12ekypMBoMEtcvWUdnVmQhtY2zYvhUvwFasNB5TDqJpfuuiW2P6mtO7p9DAWlkkw%2b%2b34z9bw%3d%3d"&gt;http://www.microsoft.com/downloads/details.aspx?FamilyID=0b4f56e4-0ccc-4626-826a-ed2c4c95c871&amp;#38;displaylang=en&amp;#38;Hash=MOGBEU0c5e9GVX12ekypMBoMEtcvWUdnVmQhtY2zYvhUvwFasNB5TDqJpfuuiW2P6mtO7p9DAWlkkw%2b%2b34z9bw%3d%3d&lt;/a&gt; &lt;br /&gt;
&lt;p /&gt;
And then once installed make sure you get the right .exe for your version of windows out of  C:\program files\Microsoft\VSSSDK72\TestApps\vshadow\bin since C:\program files\Microsoft\VSSSDK72\Tools\VSSReports contains a version that doesn't work in XP.&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
(Below is the error I saw when using that version, in case it helps anyone else reach this answer) &lt;br /&gt;
&lt;p /&gt;
C:\Program Files\Microsoft\VSSSDK72\Tools\VSSReports&amp;gt;vshadow -q&lt;br /&gt;
&lt;p /&gt;
VSHADOW.EXE 2.2 - Volume Shadow Copy sample client&lt;br /&gt;
Copyright (C) 2005 Microsoft Corporation. All rights reserved.&lt;br /&gt;
&lt;p /&gt;
&lt;br /&gt;
(Option: Query all shadow copies)&lt;br /&gt;
&lt;ul class="jive-dash"&gt;
&lt;li&gt;Setting the VSS context to: 0xffffffff&lt;/li&gt;
&lt;/ul&gt;
&lt;p /&gt;
ERROR: COM call "m_pVssObject-&amp;gt;SetContext(dwContext)" failed.&lt;br /&gt;
&lt;ul class="jive-dash"&gt;
&lt;li&gt;Returned HRESULT = 0xc0000005&lt;/li&gt;
&lt;li&gt;Error text: &lt;/li&gt;
&lt;li&gt;Please re-run VSHADOW.EXE with the /tracing option to get more details&lt;/li&gt;
&lt;/ul&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;br /&gt;</description>
      <pubDate>Mon, 31 Mar 2008 23:45:18 GMT</pubDate>
      <author>Nummagumma</author>
      <guid>http://communities.vmware.com/message/901267?tstart=0#901267</guid>
      <dc:date>2008-03-31T23:45:18Z</dc:date>
      <clearspace:dateToText>1 year, 7 months ago</clearspace:dateToText>
    </item>
    <item>
      <title>Re: Backup vbscript for VMWare Server: Only ~1min downtime</title>
      <link>http://communities.vmware.com/message/857683?tstart=0#857683</link>
      <description>Ktlevy,&lt;br /&gt;
&lt;br /&gt;
I backup 6 VM's every other night.  I just added them to the .bat file.  Then I use scheduled task to run the bat file.  They will backup in the order specified in the .bat and not all at once.  &lt;br /&gt;
&lt;br /&gt;
Ex: &lt;br /&gt;
VM_Backup.bat&lt;br /&gt;
&lt;br /&gt;
@echo off&lt;br /&gt;
echo "Backing up VM1"&lt;br /&gt;
wscript VM-Backup.vbs VM1&lt;br /&gt;
&lt;br /&gt;
echo "Backing up VM2"&lt;br /&gt;
wscript VM-Backup.vbs VM2&lt;br /&gt;
&lt;br /&gt;
echo "Backing up VM3"&lt;br /&gt;
wscript VM-Backup.vbs VM3</description>
      <pubDate>Wed, 06 Feb 2008 17:37:28 GMT</pubDate>
      <author>Gigaguy</author>
      <guid>http://communities.vmware.com/message/857683?tstart=0#857683</guid>
      <dc:date>2008-02-06T17:37:28Z</dc:date>
      <clearspace:dateToText>1 year, 9 months ago</clearspace:dateToText>
      <clearspace:replyCount>2</clearspace:replyCount>
    </item>
    <item>
      <title>Re: Backup vbscript for VMWare Server: Only ~1min downtime</title>
      <link>http://communities.vmware.com/message/857673?tstart=0#857673</link>
      <description>Has anyone figured out a good way to backup multiple VMs?  Currently, I have separate scheduled tasks, one for each VM.</description>
      <pubDate>Wed, 06 Feb 2008 17:33:23 GMT</pubDate>
      <author>ktlevy</author>
      <guid>http://communities.vmware.com/message/857673?tstart=0#857673</guid>
      <dc:date>2008-02-06T17:33:23Z</dc:date>
      <clearspace:dateToText>1 year, 9 months ago</clearspace:dateToText>
      <clearspace:replyCount>3</clearspace:replyCount>
    </item>
    <item>
      <title>Re: Backup vbscript for VMWare Server: Only ~1min downtime</title>
      <link>http://communities.vmware.com/message/854524?tstart=0#854524</link>
      <description>Thanks for the updated script Gigaguy.&lt;br /&gt;
&lt;br /&gt;
I now have this working - hope the below helps a 64bit OS user somewhere. I &lt;i&gt;&lt;u&gt;was&lt;/u&gt;&lt;/i&gt; running this script with the below batch file to run the script in a 32bit cmd.exe:&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote&gt;@echo off &lt;br clear="all" /&gt; echo "Backing up W2k3 sample" &lt;br clear="all" /&gt; c: &lt;br clear="all" /&gt; cd\ &lt;br clear="all" /&gt; cd WINDOWS\SysWOW64 &lt;br clear="all" /&gt; cmd /C wscript.exe c:\vmbackup\VM-Backup.vbs sample&lt;/blockquote&gt;
&lt;br /&gt;
This batch file works on a 64bit 2003 server OS with saxa's script (&lt;a class="jive-link-thread" href="http://communities.vmware.com/thread/54782"&gt;http://communities.vmware.com/thread/54782&lt;/a&gt;) but not on this one. You get the following error below:&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote&gt;2008-02-01_17:46:02 Running "C:\Program Files (x86)\7-Zip\7z.exe" a -tzip "E:\VMBackup\Backup test-2008-02-01_174426.zip" "O:\Virtual Machines\Backup test\*" &lt;br clear="all" /&gt;	2008-02-01_17:46:02 The zip command returned result code 1&lt;br clear="all" /&gt;	2008-02-01_17:46:02 **ERROR**: The zip command failed, no zip file was created&lt;/blockquote&gt;
This error also occurs if you do not have vshadow.exe in the same folder as the script.&lt;br /&gt;
&lt;br /&gt;
To make this work I have to manually run the 32bit cmd.exe from the WINDOWS\SysWOW64 folder, navigate to the scipt folder and run the script from here e.g.VM-Backup.vbs sample.&lt;br /&gt;
&lt;br /&gt;
Any other 64bit Windows OS users care to share how they run their script from a batch file? (I would like to add this as a scheduled task) - (EDIT) SOLUTION IS TO PUT VSHADOW.EXE IN WINDOWS\SysWOW64 folder&lt;br /&gt;
&lt;br /&gt;
Message was edited by: Ben Rayner</description>
      <pubDate>Fri, 01 Feb 2008 23:09:00 GMT</pubDate>
      <author>Ben Rayner</author>
      <guid>http://communities.vmware.com/message/854524?tstart=0#854524</guid>
      <dc:date>2008-02-01T23:09:00Z</dc:date>
      <clearspace:dateToText>1 year, 9 months ago</clearspace:dateToText>
      <clearspace:replyCount>5</clearspace:replyCount>
    </item>
    <item>
      <title>Re: Backup vbscript for VMWare Server: Only ~1min downtime</title>
      <link>http://communities.vmware.com/message/856362?tstart=0#856362</link>
      <description>The solution to my problem was to put vshadow.exe in the WINDOWS\SysWOW64 folder.&lt;br /&gt;
&lt;br /&gt;
vshadow.exe does not need to be in the same directory as the script, but it needs to be in the directory you are in when you execute the script (if that makes sense).&lt;br /&gt;
&lt;br /&gt;
In my batch file below I am 'in' the WINDOWS\SysWOW64 folder when I execute the script from c:\vmbackup&lt;br /&gt;
&lt;br /&gt;
     @echo off &lt;br /&gt;
     echo "Backing up W2k3 sample" &lt;br /&gt;
     c: &lt;br /&gt;
     cd\ &lt;br /&gt;
     cd WINDOWS\SysWOW64 &lt;br /&gt;
     cmd /C wscript.exe c:\vmbackup\VM-Backup.vbs sample&lt;br /&gt;
&lt;br /&gt;
Ben</description>
      <pubDate>Tue, 05 Feb 2008 12:10:30 GMT</pubDate>
      <author>Ben Rayner</author>
      <guid>http://communities.vmware.com/message/856362?tstart=0#856362</guid>
      <dc:date>2008-02-05T12:10:30Z</dc:date>
      <clearspace:dateToText>1 year, 9 months ago</clearspace:dateToText>
      <clearspace:replyCount>4</clearspace:replyCount>
    </item>
    <item>
      <title>Re: Backup vbscript for VMWare Server: Only ~1min downtime</title>
      <link>http://communities.vmware.com/message/855755?tstart=0#855755</link>
      <description>Reattaching ZIP.</description>
      <pubDate>Mon, 04 Feb 2008 17:46:40 GMT</pubDate>
      <author>Gigaguy</author>
      <guid>http://communities.vmware.com/message/855755?tstart=0#855755</guid>
      <dc:date>2008-02-04T17:46:40Z</dc:date>
      <clearspace:dateToText>1 year, 9 months ago</clearspace:dateToText>
      <clearspace:replyCount>2</clearspace:replyCount>
    </item>
    <item>
      <title>Re: Backup vbscript for VMWare Server: Only ~1min downtime</title>
      <link>http://communities.vmware.com/message/855711?tstart=0#855711</link>
      <description>&lt;br /&gt;
Gigaguy,&lt;br /&gt;
&lt;p /&gt;
 I am unable to download your latest update of the backup script - basically nothing gets saved to my local drive.  Can you try to reupload the script again?&lt;br /&gt;
&lt;p /&gt;
Thanks,&lt;br /&gt;
&lt;p /&gt;
Kevin</description>
      <pubDate>Mon, 04 Feb 2008 17:06:34 GMT</pubDate>
      <author>ktlevy</author>
      <guid>http://communities.vmware.com/message/855711?tstart=0#855711</guid>
      <dc:date>2008-02-04T17:06:34Z</dc:date>
      <clearspace:dateToText>1 year, 9 months ago</clearspace:dateToText>
      <clearspace:replyCount>3</clearspace:replyCount>
    </item>
    <item>
      <title>Re: Backup vbscript for VMWare Server: Only ~1min downtime</title>
      <link>http://communities.vmware.com/message/853161?tstart=0#853161</link>
      <description>Here is the updated script, with the statistics showing correctly. Hopefully, that will correct some of the issues.</description>
      <pubDate>Thu, 31 Jan 2008 17:20:16 GMT</pubDate>
      <author>Gigaguy</author>
      <guid>http://communities.vmware.com/message/853161?tstart=0#853161</guid>
      <dc:date>2008-01-31T17:20:16Z</dc:date>
      <clearspace:dateToText>1 year, 9 months ago</clearspace:dateToText>
      <clearspace:replyCount>10</clearspace:replyCount>
    </item>
    <item>
      <title>Re: Backup vbscript for VMWare Server: Only ~1min downtime</title>
      <link>http://communities.vmware.com/message/852587?tstart=0#852587</link>
      <description>&lt;br /&gt;
I'm seeing a similar issue with the statistics.  Everything works ok for me with the backup and zip creation, however the VM size and disk space statistics are not getting valid information for some reason:&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-size:2"&gt;{size:2}&lt;br /&gt;
&lt;ul&gt;

&lt;ul&gt;

&lt;ul&gt;
&lt;li&gt;THERE IS NOT ENOUGH FREE DISK SPACE TO BACKUP AGAIN! ***&lt;/li&gt;
&lt;/ul&gt;
&lt;/ul&gt;
&lt;/ul&gt;
&lt;p /&gt;
The VMware Backup Script backed up the virtual machine 'OSIRIS' successfully. &lt;br /&gt;
&lt;p /&gt;
Backup saved as W:\IT\virtual-machines\Backups\VMware\OSIRIS-2008-01-30_135646.zip.&lt;br /&gt;
VM was offline 3 minutes between 13:56:48 and 13:59:59.&lt;br /&gt;
The script operation was paused for 0 minutes.&lt;br /&gt;
The compress operation took 75 minutes.&lt;br /&gt;
&lt;p /&gt;
The VM is approximately GB.&lt;br /&gt;
The zip file is approximately 5.64 GB.&lt;br /&gt;
There is approximately GB free on the backup location.&lt;br /&gt;
&lt;p /&gt;
Total run time was 78 minutes.&lt;br /&gt;
Start Time: 2008-01-30_13:56:48.&lt;br /&gt;
End Time: 2008-01-30_15:14:01.&lt;br /&gt;
&lt;p /&gt;
&lt;ul&gt;

&lt;ul&gt;

&lt;ul&gt;
&lt;li&gt;THERE IS NOT ENOUGH FREE DISK SPACE TO BACKUP AGAIN! ***&lt;/li&gt;
&lt;/ul&gt;
&lt;/ul&gt;
&lt;/ul&gt;
&lt;br /&gt;
&lt;/span&gt;{size}</description>
      <pubDate>Wed, 30 Jan 2008 23:25:38 GMT</pubDate>
      <author>ktlevy</author>
      <guid>http://communities.vmware.com/message/852587?tstart=0#852587</guid>
      <dc:date>2008-01-30T23:25:38Z</dc:date>
      <clearspace:dateToText>1 year, 9 months ago</clearspace:dateToText>
      <clearspace:replyCount>11</clearspace:replyCount>
    </item>
    <item>
      <title>Re: Backup vbscript for VMWare Server: Only ~1min downtime</title>
      <link>http://communities.vmware.com/message/851994?tstart=0#851994</link>
      <description>I agree that copying from the VSS drive is not needed.  The VM is only down for a few moments, 2 min max.&lt;br /&gt;
&lt;p /&gt;
I just tried it with VShadowCopyPath = "O:\Virtual Machines\" and got a new 7zip error.&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote&gt;&lt;i&gt;The zip command, , failed with code 2.  The VMware Backup Script couldn't create F:\VMBackup\PRTG-2008-01-30_100157.zip.  Please check if you have enough disk space on F:\VMBackup and run the backup script again.&lt;/i&gt;&lt;/blockquote&gt;
&lt;blockquote&gt;&lt;i&gt;Note: The uncompressed virtual machine files were NOT deleted from F:\VMBackup.&lt;/i&gt;&lt;/blockquote&gt;
&lt;br /&gt;
Error 2 is a Fatal Error.  There currently is 62GB free space on the F: drive.&lt;br /&gt;
&lt;br /&gt;
Message was edited by: SLMHC</description>
      <pubDate>Wed, 30 Jan 2008 16:16:53 GMT</pubDate>
      <author>SLMHC</author>
      <guid>http://communities.vmware.com/message/851994?tstart=0#851994</guid>
      <dc:date>2008-01-30T16:16:53Z</dc:date>
      <clearspace:dateToText>1 year, 9 months ago</clearspace:dateToText>
    </item>
    <item>
      <title>Re: Backup vbscript for VMWare Server: Only ~1min downtime</title>
      <link>http://communities.vmware.com/message/851636?tstart=0#851636</link>
      <description>Further to the above...The e-mail alert informs:&lt;br /&gt;
&lt;br /&gt;
    The zip command, , failed with code 1.  The VMware Backup Script couldn't create E:\VMBackup\Backup test-2008-01-30_014239.zip.  Please check if you have enough disk space on  E:\VMBackup and run the backup script again.&lt;br /&gt;
&lt;br /&gt;
There is 254GB free space and the VM is only 3.5GB.&lt;br /&gt;
&lt;br /&gt;
Turning off Zip file creation (by making MakeZippedFile = False) also fails, so it's not a zip file creation issue.&lt;br /&gt;
&lt;br /&gt;
The backup says it completes successfully, but a backup is not actually produced. The resulting e-mail alert is below:&lt;br /&gt;
&lt;br /&gt;
&lt;ul&gt;

&lt;ul&gt;

&lt;ul&gt;
&lt;li&gt;THERE IS NOT ENOUGH FREE DISK SPACE TO BACKUP AGAIN! ***&lt;/li&gt;
&lt;/ul&gt;
&lt;/ul&gt;
&lt;/ul&gt;
&lt;p /&gt;
The VMware Backup Script backed up the virtual machine 'Backup test' successfully.				&lt;br /&gt;
&lt;br /&gt;
Backup saved as .&lt;br /&gt;
VM was offline 2 minutes between 08:00:59 and 08:02:36.&lt;br /&gt;
The script operation was paused for 0 minutes.&lt;br /&gt;
The compress operation took 0 minutes.&lt;br /&gt;
&lt;br /&gt;
The VM is approximately  GB.&lt;br /&gt;
The zip file is approximately  GB.&lt;br /&gt;
There is approximately  GB free on the backup location.&lt;br /&gt;
&lt;br /&gt;
Total run time was 2 minutes.&lt;br /&gt;
Start Time: 2008-01-30_08:00:59.&lt;br /&gt;
End Time: 2008-01-30_08:02:36.</description>
      <pubDate>Wed, 30 Jan 2008 08:38:55 GMT</pubDate>
      <author>Ben Rayner</author>
      <guid>http://communities.vmware.com/message/851636?tstart=0#851636</guid>
      <dc:date>2008-01-30T08:38:55Z</dc:date>
      <clearspace:dateToText>1 year, 9 months ago</clearspace:dateToText>
      <clearspace:replyCount>12</clearspace:replyCount>
    </item>
    <item>
      <title>Re: Backup vbscript for VMWare Server: Only ~1min downtime</title>
      <link>http://communities.vmware.com/message/851470?tstart=0#851470</link>
      <description>Thanks for the prompt reply!&lt;br /&gt;
&lt;br /&gt;
Checked paths and Tested again - still same issue.&lt;br /&gt;
&lt;br /&gt;
My paths are:&lt;br /&gt;
&lt;br /&gt;
DefaultVMPath = "E:\Virtual Machines\"		&lt;br /&gt;
DefaultCopyPath = "E:\VMBackupTemp\"			&lt;br /&gt;
DefaultBackupPath = "E:\VMBackup\"			&lt;br /&gt;
UseVShadow = True					&lt;br /&gt;
VShadowCopyPath = "O:\Virtual Machines\"&lt;br /&gt;
&lt;br /&gt;
The error in the log is:&lt;br /&gt;
&lt;br /&gt;
2008-01-30_01:44:18 Starting the Zip process&lt;br /&gt;
2008-01-30_01:44:18 Running "C:\Program Files (x86)\7-Zip\7z.exe" a -tzip "E:\VMBackup\Backup test-2008-01-30_014239.zip" "O:\Virtual Machines\Backup test\*"&lt;br /&gt;
2008-01-30_01:44:18 The zip command returned result code 1&lt;br /&gt;
2008-01-30_01:44:18 **ERROR**: The zip command failed, no zip file was created&lt;br /&gt;
&lt;br /&gt;
Using the exact same setup, but with a non-vss script (v3.6) works fine.&lt;br /&gt;
&lt;br /&gt;
Any ideas?</description>
      <pubDate>Wed, 30 Jan 2008 01:57:52 GMT</pubDate>
      <author>Ben Rayner</author>
      <guid>http://communities.vmware.com/message/851470?tstart=0#851470</guid>
      <dc:date>2008-01-30T01:57:52Z</dc:date>
      <clearspace:dateToText>1 year, 9 months ago</clearspace:dateToText>
      <clearspace:replyCount>13</clearspace:replyCount>
    </item>
    <item>
      <title>Re: Backup vbscript for VMWare Server: Only ~1min downtime</title>
      <link>http://communities.vmware.com/message/851445?tstart=0#851445</link>
      <description>&lt;br /&gt;
The VShadowCopyPath should be the same as your original VM path.  So if you VMs are located in E:\storage\VMs the VShadowCopyPath would be O:\storage\VMs.&lt;br /&gt;
&lt;p /&gt;
It sound like you already have the VShadow part working but getting a zip error.  May just be a path error.&lt;br /&gt;
&lt;p /&gt;
&lt;br /&gt;</description>
      <pubDate>Wed, 30 Jan 2008 00:39:49 GMT</pubDate>
      <author>Gigaguy</author>
      <guid>http://communities.vmware.com/message/851445?tstart=0#851445</guid>
      <dc:date>2008-01-30T00:39:49Z</dc:date>
      <clearspace:dateToText>1 year, 9 months ago</clearspace:dateToText>
      <clearspace:replyCount>14</clearspace:replyCount>
    </item>
    <item>
      <title>Re: Backup vbscript for VMWare Server: Only ~1min downtime</title>
      <link>http://communities.vmware.com/message/851432?tstart=0#851432</link>
      <description>Hello 1st post!&lt;br /&gt;
&lt;br /&gt;
After some initial issues getting this to run on a 64bit host I am about there. I can happily run the non-vss script (v3.6) but when I run this one i get the same error as SLMHC:&lt;br /&gt;
&lt;br /&gt;
+ 2008-01-29_11:38:40 The zip command returned result code 1+ &lt;br /&gt;
+ 2008-01-29_11:38:40 **ERROR**: The zip command failed, no zip file was created+&lt;br /&gt;
&lt;br /&gt;
An empty zip file is created before the error is logged.&lt;br /&gt;
&lt;br /&gt;
Can SLMHC provide a bit more info on what he did to get this to work? From your post it appears that you just set the VShadowCopyPath setting to "O:\Virtual Machines". I have tried this, but no go.&lt;br /&gt;
&lt;br /&gt;
The minimal VM downtime is great in this script!</description>
      <pubDate>Wed, 30 Jan 2008 00:31:15 GMT</pubDate>
      <author>Ben Rayner</author>
      <guid>http://communities.vmware.com/message/851432?tstart=0#851432</guid>
      <dc:date>2008-01-30T00:31:15Z</dc:date>
      <clearspace:dateToText>1 year, 9 months ago</clearspace:dateToText>
      <clearspace:replyCount>15</clearspace:replyCount>
    </item>
    <item>
      <title>Re: Backup vbscript for VMWare Server: Only ~1min downtime</title>
      <link>http://communities.vmware.com/message/851325?tstart=0#851325</link>
      <description>&lt;br /&gt;
Ok, so the ZIP file is getting created in the correct place now. And, this should happen after the VM is started and running.  Correct?  If so, then the script is working as it should.  I didnt see a point in copying the file and then zipping it when it didnt affect downtime.  So I set it up to zip up the files directly from the Shadow Drive.  &lt;br /&gt;
&lt;p /&gt;
VM shouldnt be down more than 1 min or so, correct?  The zipping process itself does take a while, even longer if accross the network.  &lt;br /&gt;
&lt;p /&gt;
My goal was to minimize downtime of the VM.</description>
      <pubDate>Tue, 29 Jan 2008 22:54:50 GMT</pubDate>
      <author>Gigaguy</author>
      <guid>http://communities.vmware.com/message/851325?tstart=0#851325</guid>
      <dc:date>2008-01-29T22:54:50Z</dc:date>
      <clearspace:dateToText>1 year, 9 months ago</clearspace:dateToText>
      <clearspace:replyCount>1</clearspace:replyCount>
    </item>
    <item>
      <title>Re: Backup vbscript for VMWare Server: Only ~1min downtime</title>
      <link>http://communities.vmware.com/message/851146?tstart=0#851146</link>
      <description>Ok, I'm daft.  I now have the vshadow SDK installed.  BUT...the script still isn't working.  I next tried the commands you gave above.  Each worked until ""C:\Program Files\7-Zip\7z.exe" a -tzip "F:\VMBackup\PRTG-2008-01-29_113653.zip" "O:\vmbackuptemp\PRTG\*".  The VM wasnt copied to the vmbackuptemp dir, so I pointed it to "C:\Program Files\7-Zip\7z.exe" a -tzip "F:\VMBackup\PRTG-2008-01-29_113653.zip" "O:\Virtual Machines\PRTG\*" and it is now zipping.  Although very slowly.  It seems to take some time on the.lck file...&lt;br /&gt;
&lt;p /&gt;
I guess this leads to an error in the config.</description>
      <pubDate>Tue, 29 Jan 2008 19:49:20 GMT</pubDate>
      <author>SLMHC</author>
      <guid>http://communities.vmware.com/message/851146?tstart=0#851146</guid>
      <dc:date>2008-01-29T19:49:20Z</dc:date>
      <clearspace:dateToText>1 year, 9 months ago</clearspace:dateToText>
      <clearspace:replyCount>18</clearspace:replyCount>
    </item>
    <item>
      <title>Re: Backup vbscript for VMWare Server: Only ~1min downtime</title>
      <link>http://communities.vmware.com/message/851108?tstart=0#851108</link>
      <description>Try creating a shadow copy and running the Zip command by itself from the prompt.&lt;br /&gt;
&lt;br /&gt;
1. vshadow.exe -nw -p -script=GeneratedVarsTempScript.cmd SOURCEDRIVE&lt;br /&gt;
2. call GeneratedVarsTempScript.cmd &lt;br /&gt;
3. vshadow.exe -el=%SHADOW_ID_1%,O:&lt;br /&gt;
4. "C:\Program Files\7-Zip\7z.exe" a -tzip "F:\VMBackup\PRTG-2008-01-29_113653.zip" "O:\vmbackuptemp\PRTG\*"&lt;br /&gt;
&lt;br /&gt;
Sounds like it may be trying to zip up the running VM, which shouldnt be the case, since its a shadow copy.</description>
      <pubDate>Tue, 29 Jan 2008 19:27:55 GMT</pubDate>
      <author>Gigaguy</author>
      <guid>http://communities.vmware.com/message/851108?tstart=0#851108</guid>
      <dc:date>2008-01-29T19:27:55Z</dc:date>
      <clearspace:dateToText>1 year, 9 months ago</clearspace:dateToText>
      <clearspace:replyCount>19</clearspace:replyCount>
    </item>
    <item>
      <title>Re: Backup vbscript for VMWare Server: Only ~1min downtime</title>
      <link>http://communities.vmware.com/message/850996?tstart=0#850996</link>
      <description>&lt;br /&gt;
Gigaguy,  Everything works great until the zip file is made.  Here is the log entry:&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote&gt;&lt;i&gt;2008-01-29_11:38:40 Starting the Zip process&lt;/i&gt; &lt;br clear="all" /&gt; +	2008-01-29_11:38:40 Running "C:\Program Files\7-Zip\7z.exe" a -tzip "F:\VMBackup\PRTG-2008-01-29_113653.zip" "O:\vmbackuptemp\PRTG\*"+ &lt;br clear="all" /&gt; +	2008-01-29_11:38:40 The zip command returned result code 1+ &lt;br clear="all" /&gt; +	2008-01-29_11:38:40 **ERROR**: The zip command failed, no zip file was created+&lt;/blockquote&gt;
&lt;br /&gt;
The 7zip exit codes state that code 1 means &lt;i&gt;"Warning (Non fatal error(s)). For example, one or more files were locked by some other application, so they were not compressed."&lt;/i&gt;&lt;br /&gt;
&lt;p /&gt;
Any ideas on how to track down and fix this issue?&lt;br /&gt;
&lt;p /&gt;
-Dave</description>
      <pubDate>Tue, 29 Jan 2008 18:03:17 GMT</pubDate>
      <author>SLMHC</author>
      <guid>http://communities.vmware.com/message/850996?tstart=0#850996</guid>
      <dc:date>2008-01-29T18:03:17Z</dc:date>
      <clearspace:dateToText>1 year, 9 months ago</clearspace:dateToText>
      <clearspace:replyCount>20</clearspace:replyCount>
    </item>
    <item>
      <title>Re: Backup vbscript for VMWare Server: Only ~1min downtime</title>
      <link>http://communities.vmware.com/message/823347?tstart=0#823347</link>
      <description>I was able to get it integrated.  I modified the original script VM-Backup.vbs, not yours.  Your script was very helpful as a reference though.  I needed some of the features from the original script and it was easier to add vshadow to that script the to add the needed functionality to you script.  &lt;br /&gt;
&lt;br /&gt;
This script includes all the orginal functionality, and adds VShadow for minimal downtime.  VShadow will mount as a drive letter.  And then un-mount when the script is finished.&lt;br /&gt;
&lt;br /&gt;
I did not add Zack's original VShadow code to copy without mounting a drive (Honestly, didnt see a point in having it both ways)&lt;br /&gt;
&lt;br /&gt;
You will need vshadow.exe in the same directory as the script.&lt;br /&gt;
7-Zip must be "installed", regkeys are used to get the 7-zip path.&lt;br /&gt;
You CAN use the VM-Backup.ini file to pass most of the parameters you can set in the script&lt;br /&gt;
&lt;br /&gt;
To use VShadow:&lt;br /&gt;
DefaultVMPath = "E:\Virtual Machines\"		'Relative to VMware host.  Need read permissions&lt;br /&gt;
DefaultCopyPath = "D:\VMBackupTemp\"		'Relative to the machine running the script, UNC is OK.  Need write permissions. Not used for VShadow&lt;br /&gt;
DefaultBackupPath = "G:\VMBackup\"		'Relative to the machine running the script, UNC is OK.  Need write permissions&lt;br /&gt;
UseVShadow = True                                                  'Set True to use VShadow&lt;br /&gt;
VShadowCopyPath = "O:\Virtual Machines\"               'This should be identical to "DefaultCopyPath" but with a different drive letter.  This is the drive letter where VShadow will be mounted (O: in this case)</description>
      <pubDate>Wed, 19 Dec 2007 19:24:19 GMT</pubDate>
      <author>Gigaguy</author>
      <guid>http://communities.vmware.com/message/823347?tstart=0#823347</guid>
      <dc:date>2007-12-19T19:24:19Z</dc:date>
      <clearspace:dateToText>1 year, 11 months ago</clearspace:dateToText>
      <clearspace:replyCount>22</clearspace:replyCount>
    </item>
    <item>
      <title>Re: Backup vbscript for VMWare Server: Only ~1min downtime</title>
      <link>http://communities.vmware.com/message/814869?tstart=0#814869</link>
      <description>If you do get it integrated, I'll be happy to put it up.  As I said before, I don't have Windows Server on my home machine, so I can't use the vshadow drive mapping, as Microsoft disabled it in the XP version of vshadow.  The script would definitely run a lot faster with it, which would be nice.  I'd have some trouble debugging peoples problems, so if you do get it up be prepared to get some questions (the first draft always has some bugs...).&lt;br /&gt;
-Zack</description>
      <pubDate>Mon, 10 Dec 2007 00:25:08 GMT</pubDate>
      <author>zgn667</author>
      <guid>http://communities.vmware.com/message/814869?tstart=0#814869</guid>
      <dc:date>2007-12-10T00:25:08Z</dc:date>
      <clearspace:dateToText>1 year, 11 months ago</clearspace:dateToText>
      <clearspace:replyCount>23</clearspace:replyCount>
    </item>
    <item>
      <title>Re: Backup vbscript for VMWare Server: Only ~1min downtime</title>
      <link>http://communities.vmware.com/message/813813?tstart=0#813813</link>
      <description>Sorry, Posted twice.</description>
      <pubDate>Fri, 07 Dec 2007 17:14:11 GMT</pubDate>
      <author>Gigaguy</author>
      <guid>http://communities.vmware.com/message/813813?tstart=0#813813</guid>
      <dc:date>2007-12-07T17:14:11Z</dc:date>
      <clearspace:dateToText>1 year, 11 months ago</clearspace:dateToText>
      <clearspace:replyCount>24</clearspace:replyCount>
    </item>
    <item>
      <title>Re: Backup vbscript for VMWare Server: Only ~1min downtime</title>
      <link>http://communities.vmware.com/message/813812?tstart=0#813812</link>
      <description>I found out that we dont even need dosdev.  Vshadow.exe can mount a drive.  &lt;br /&gt;
&lt;p /&gt;
Run the script below by typing scriptname.cmd shadowdrive targetdrive (scriptname.cmd e: o:). Found Here (&lt;a class="jive-link-external" href="http://blogs.msdn.com/adioltean/archive/2005/01/20/357836.aspx"&gt;http://blogs.msdn.com/adioltean/archive/2005/01/20/357836.aspx&lt;/a&gt;)&lt;br /&gt;
&lt;p /&gt;
I have been trying to integrate it into your script, but have not been very sucessfull yet.&lt;br /&gt;
&lt;p /&gt;
Here is a sample script:&lt;br /&gt;
setlocal &lt;br /&gt;
if NOT "%CALLBACK_SCRIPT%"=="" goto :IS_CALLBACK &lt;br /&gt;
set SOURCE_VOLUME=%1 &lt;br /&gt;
set DESTINATION_VOLUME=%2 &lt;br /&gt;
set CALLBACK_SCRIPT=%~dpnx0 &lt;br /&gt;
set TEMP_GENERATED_SCRIPT=GeneratedVarsTempScript.cmd &lt;br /&gt;
%~dp0\vshadow.exe -nw -p -script=%TEMP_GENERATED_SCRIPT% -exec=%CALLBACK_SCRIPT% %SOURCE_VOLUME% &lt;br /&gt;
del /f %EMP_GENERATED_SCRIPT% &lt;br /&gt;
@goto :EOF &lt;br /&gt;
:IS_CALLBACK &lt;br /&gt;
setlocal &lt;br /&gt;
call %TEMP_GENERATED_SCRIPT% %~dp0\vshadow.exe -el=%SHADOW_ID_1%,%DESTINATION_VOLUME% &lt;br /&gt;
@echo.&lt;br /&gt;
@echo ******************************************* &lt;br /&gt;
@echo To delete the shadow copy, run the command: &lt;br /&gt;
@echo VSHADOW.EXE -ds=%SHADOW_ID_1% &lt;br /&gt;
@echo ******************************************* &lt;br /&gt;
@echo.</description>
      <pubDate>Fri, 07 Dec 2007 17:13:43 GMT</pubDate>
      <author>Gigaguy</author>
      <guid>http://communities.vmware.com/message/813812?tstart=0#813812</guid>
      <dc:date>2007-12-07T17:13:43Z</dc:date>
      <clearspace:dateToText>1 year, 11 months ago</clearspace:dateToText>
    </item>
    <item>
      <title>Re: Backup vbscript for VMWare Server: Only ~1min downtime</title>
      <link>http://communities.vmware.com/message/813644?tstart=0#813644</link>
      <description>Try putting the 7za files in the same directory as the script. That fixed it for me.</description>
      <pubDate>Fri, 07 Dec 2007 14:54:06 GMT</pubDate>
      <author>mpierce</author>
      <guid>http://communities.vmware.com/message/813644?tstart=0#813644</guid>
      <dc:date>2007-12-07T14:54:06Z</dc:date>
      <clearspace:dateToText>1 year, 11 months ago</clearspace:dateToText>
    </item>
    <item>
      <title>Re: Backup vbscript for VMWare Server: Only ~1min downtime</title>
      <link>http://communities.vmware.com/message/813620?tstart=0#813620</link>
      <description>&lt;br /&gt;
still no success '( '( '(&lt;br /&gt;
&lt;p /&gt;
in the temp folder a copy of the machine's file do appear, but that's it. :'(</description>
      <pubDate>Fri, 07 Dec 2007 14:33:32 GMT</pubDate>
      <author>walter81</author>
      <guid>http://communities.vmware.com/message/813620?tstart=0#813620</guid>
      <dc:date>2007-12-07T14:33:32Z</dc:date>
      <clearspace:dateToText>1 year, 11 months ago</clearspace:dateToText>
      <clearspace:replyCount>1</clearspace:replyCount>
    </item>
    <item>
      <title>Re: Backup vbscript for VMWare Server: Only ~1min downtime</title>
      <link>http://communities.vmware.com/message/813459?tstart=0#813459</link>
      <description>DosDev can be found in "MPSRPT_Exchange.EXE"&lt;br /&gt;
&lt;br /&gt;
&lt;a class="jive-link-external" href="http://www.microsoft.com/downloads/details.aspx?FamilyID=cebf3c7c-7ca5-408f-88b7-f9c79b7306c0&amp;#38;DisplayLang=en"&gt;http://www.microsoft.com/downloads/details.aspx?FamilyID=cebf3c7c-7ca5-408f-88b7-f9c79b7306c0&amp;#38;DisplayLang=en&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
I just kicked off the exe and went to, "C:\WINDOWS\MPSReports\Exchange\bin" and there it was.</description>
      <pubDate>Fri, 07 Dec 2007 10:32:56 GMT</pubDate>
      <author>Gigaguy</author>
      <guid>http://communities.vmware.com/message/813459?tstart=0#813459</guid>
      <dc:date>2007-12-07T10:32:56Z</dc:date>
      <clearspace:dateToText>1 year, 11 months ago</clearspace:dateToText>
    </item>
    <item>
      <title>Re: Backup vbscript for VMWare Server: Only ~1min downtime</title>
      <link>http://communities.vmware.com/message/813367?tstart=0#813367</link>
      <description>Good; 7za is supposed to be in a %PATH%, just like vshadow.  Out of curiosity, are you running the new version of the script I put up?  I'd like to know if the new version will work if its run on your computer like you were trying to run it at first (from the directory with cscript,  with 7za and vshadow in %PATH% or the same directory as cscript).  It'd be great if you could test it for me.&lt;br /&gt;
Thanks,&lt;br /&gt;
Zack</description>
      <pubDate>Fri, 07 Dec 2007 07:27:39 GMT</pubDate>
      <author>zgn667</author>
      <guid>http://communities.vmware.com/message/813367?tstart=0#813367</guid>
      <dc:date>2007-12-07T07:27:39Z</dc:date>
      <clearspace:dateToText>1 year, 11 months ago</clearspace:dateToText>
      <clearspace:replyCount>2</clearspace:replyCount>
    </item>
    <item>
      <title>Re: Backup vbscript for VMWare Server: Only ~1min downtime</title>
      <link>http://communities.vmware.com/message/813326?tstart=0#813326</link>
      <description>I copied the 7za executable into the same directory and it is working now.</description>
      <pubDate>Fri, 07 Dec 2007 05:38:31 GMT</pubDate>
      <author>mpierce</author>
      <guid>http://communities.vmware.com/message/813326?tstart=0#813326</guid>
      <dc:date>2007-12-07T05:38:31Z</dc:date>
      <clearspace:dateToText>1 year, 11 months ago</clearspace:dateToText>
      <clearspace:replyCount>3</clearspace:replyCount>
    </item>
    <item>
      <title>Re: Backup vbscript for VMWare Server: Only ~1min downtime</title>
      <link>http://communities.vmware.com/message/813324?tstart=0#813324</link>
      <description>It is running from the location now and copies the files - but it errors when it tries to run the 7za command.  I have echoed the backup_string so I can see what it is trying to pass and if I type that string into the command line it works fine.  Here is the screen dump -&lt;br /&gt;
&lt;br /&gt;
C:\VM-BackupScript&amp;gt;cscript vm-vss-backup.vbs "e:\Virtual Machines\VM-FFTEST1\Windows XP Professional.vmx"&lt;br /&gt;
Microsoft (R) Windows Script Host Version 5.6&lt;br /&gt;
Copyright (C) Microsoft Corporation 1996-2001. All rights reserved.&lt;br /&gt;
&lt;br /&gt;
trying to compress&lt;br /&gt;
7za a -tzip "E:\backups\VM-FFTEST1-2007-12-06-215836.zip" "E:\temp\\VM-FFTEST1\*" (This is the echoed backup_string)&lt;br /&gt;
C:\VM-BackupScript\vm-vss-backup.vbs(689, 1) (null): The system cannot find the file specified.&lt;br /&gt;
&lt;p /&gt;
Thanks</description>
      <pubDate>Fri, 07 Dec 2007 05:18:11 GMT</pubDate>
      <author>mpierce</author>
      <guid>http://communities.vmware.com/message/813324?tstart=0#813324</guid>
      <dc:date>2007-12-07T05:18:11Z</dc:date>
      <clearspace:dateToText>1 year, 11 months ago</clearspace:dateToText>
      <clearspace:replyCount>4</clearspace:replyCount>
    </item>
    <item>
      <title>Re: Backup vbscript for VMWare Server: Only ~1min downtime</title>
      <link>http://communities.vmware.com/message/813296?tstart=0#813296</link>
      <description>It looks like it would work, but where can I find dosdev for xp?  In Server, you can actually assign drive letters with vshadow, but stupid Microsoft decided XP shouldn't have that functionality.  Dosdev is apparently available in some SDK's, but I don't know which ones.  I also don't want to include it from a site other than Microsoft.com, because it might make people nervous to use an executable from some random site.  I could just make the script for Server that uses the vshadow drive letter assignment then zip directly from that, but my home machine is XP, so I can't test it.  Anyways, if you know somewhere from Microsoft that I can get dosdev, I'll look into including it.&lt;br /&gt;
-Zack</description>
      <pubDate>Fri, 07 Dec 2007 03:39:04 GMT</pubDate>
      <author>zgn667</author>
      <guid>http://communities.vmware.com/message/813296?tstart=0#813296</guid>
      <dc:date>2007-12-07T03:39:04Z</dc:date>
      <clearspace:dateToText>1 year, 11 months ago</clearspace:dateToText>
      <clearspace:replyCount>27</clearspace:replyCount>
    </item>
    <item>
      <title>Backup vbscript for VMWare Server: Only ~1min downtime</title>
      <link>http://communities.vmware.com/message/780182?tstart=0#780182</link>
      <description>I've been working on this script for the last week for my school's admission office. I'm no vbscript expert, but I know enough to get things to work. The script is able to achieve minimal downtime by using Microsoft's volume shadow copy service (the script will work only for Windows XP and Windows Server 2003; it may work for Vista as well, if you can find vshadow.exe for it), which you'll have to download (search vss sdk at &lt;a class="jive-link-external" href="http://www.microsoft.com/"&gt;http://www.microsoft.com/&lt;/a&gt;). This script is and adaptation of a script previously posted in this forum by saxa which can be found here: &lt;a class="jive-link-thread" href="http://communities.vmware.com/thread/54782"&gt;http://communities.vmware.com/thread/54782&lt;/a&gt;. Make sure to read all the comments in the beginning and follow any instructions. I haven't tested very thoroughly, so if you find problems, tell me and I can try to fix them. Enjoy! (The script is attached) Do not just run it; save it then right click edit it to read the comments in notepad.&lt;br /&gt;
&lt;br /&gt;
-Zack Nicolaou</description>
      <pubDate>Sat, 27 Oct 2007 06:40:31 GMT</pubDate>
      <author>zgn667</author>
      <guid>http://communities.vmware.com/message/780182?tstart=0#780182</guid>
      <dc:date>2007-10-27T06:40:31Z</dc:date>
      <clearspace:dateToText>1 year, 11 months ago</clearspace:dateToText>
      <clearspace:replyCount>55</clearspace:replyCount>
    </item>
    <item>
      <title>Re: Backup vbscript for VMWare Server: Only ~1min downtime</title>
      <link>http://communities.vmware.com/message/813287?tstart=0#813287</link>
      <description>I've put a new version of the script up which should run from anywhere.  Hopefully there won't be anymore problems, but things are never that easy...</description>
      <pubDate>Fri, 07 Dec 2007 03:22:13 GMT</pubDate>
      <author>zgn667</author>
      <guid>http://communities.vmware.com/message/813287?tstart=0#813287</guid>
      <dc:date>2007-12-07T03:22:13Z</dc:date>
      <clearspace:dateToText>1 year, 11 months ago</clearspace:dateToText>
      <clearspace:replyCount>5</clearspace:replyCount>
    </item>
    <item>
      <title>Re: Backup vbscript for VMWare Server: Only ~1min downtime</title>
      <link>http://communities.vmware.com/message/813263?tstart=0#813263</link>
      <description>zgn,&lt;br /&gt;
&lt;br /&gt;
There is a tool called dosdev.exe Which may allow skipping of the "copy" step. I tried it manually and it worked perfectly.&lt;br /&gt;
&lt;br /&gt;
(Usage Ex: "dosdev X: %SHADOW_DEVICE_1%")&lt;br /&gt;
&lt;br /&gt;
Just a thought to maybe add to your script, may make it even faster.</description>
      <pubDate>Fri, 07 Dec 2007 02:49:07 GMT</pubDate>
      <author>Gigaguy</author>
      <guid>http://communities.vmware.com/message/813263?tstart=0#813263</guid>
      <dc:date>2007-12-07T02:49:07Z</dc:date>
      <clearspace:dateToText>1 year, 11 months ago</clearspace:dateToText>
      <clearspace:replyCount>28</clearspace:replyCount>
    </item>
    <item>
      <title>Re: Backup vbscript for VMWare Server: Only ~1min downtime</title>
      <link>http://communities.vmware.com/message/813216?tstart=0#813216</link>
      <description>I found that the script does not run correctly unless it is called from the directory that it is contained in, so cd to the directory that contains vm-vss-backup.vbs then run the script.  Now, the script makes the batch files in the current directory, so the script can't find them because it only looks in its parent directory.  I'll try to fix this, but for now just run it from the directory with vm-vss-backup.vbs.  This may be the cause of your problem.</description>
      <pubDate>Fri, 07 Dec 2007 01:35:21 GMT</pubDate>
      <author>zgn667</author>
      <guid>http://communities.vmware.com/message/813216?tstart=0#813216</guid>
      <dc:date>2007-12-07T01:35:21Z</dc:date>
      <clearspace:dateToText>1 year, 11 months ago</clearspace:dateToText>
    </item>
    <item>
      <title>Re: Backup vbscript for VMWare Server: Only ~1min downtime</title>
      <link>http://communities.vmware.com/message/813194?tstart=0#813194</link>
      <description>&lt;br /&gt;
I am having problems getting the script to run - it shuts down the virtual machine but doesn't seem to do anything else.  I commented the On Error Resume Next and this is the error I am getting: &lt;br /&gt;
&lt;p /&gt;
C:\WINDOWS\SysWOW64&amp;gt;cscript c:\vm-backupscript\vm-vss-backup.vbs "e:\Virtual Machines\VM-FFTEST1\Windows XP Professional.vmx"&lt;br /&gt;
Microsoft (R) Windows Script Host Version 5.6&lt;br /&gt;
Copyright (C) Microsoft Corporation 1996-2001. All rights reserved.&lt;br /&gt;
&lt;br /&gt;
c:\vm-backupscript\vm-vss-backup.vbs(659, 1) (null): The system cannot find the file specified.&lt;br /&gt;
&lt;p /&gt;
I am running Win 2003 Server x64 so I am running the script from the SysWOW64 folder to use the appropriate version of csript as mentioned earlier.  I can run vshadow and 7za from the command line and I have commented the FileObject.Delete statements and am not finding copyfiles.bat anywhere so I would assume it is not creating the batch files correctly.&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;br /&gt;
Thanks for your help - this script looks like a great solution for minimizing downtime.&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;br /&gt;
Matt</description>
      <pubDate>Fri, 07 Dec 2007 00:31:00 GMT</pubDate>
      <author>mpierce</author>
      <guid>http://communities.vmware.com/message/813194?tstart=0#813194</guid>
      <dc:date>2007-12-07T00:31:00Z</dc:date>
      <clearspace:dateToText>1 year, 11 months ago</clearspace:dateToText>
      <clearspace:replyCount>7</clearspace:replyCount>
    </item>
    <item>
      <title>Re: Backup vbscript for VMWare Server: Only ~1min downtime</title>
      <link>http://communities.vmware.com/message/813170?tstart=0#813170</link>
      <description>See if the script successfully creates the two batch files (copyfiles and callback) but commenting out the FileObject.Delete () statements (lines 647+). If so, try the vshadow statements that creates the volume shadow and runs the callback:&lt;br /&gt;
vshadow.exe -script=copyfiles.bat -exec=callback.bat E:&lt;br /&gt;
&lt;br /&gt;
I don't know of anyother script that uses volume shadows, but there are plenty of other scripts that backup vm's (they just have a lot of downtime). If you don't care about downtime, I suggest Alex Kaufman's script, (&lt;a class="jive-link-thread" href="http://communities.vmware.com/thread/54782"&gt;http://communities.vmware.com/thread/54782&lt;/a&gt;) the script that mine is based on.</description>
      <pubDate>Fri, 07 Dec 2007 00:11:35 GMT</pubDate>
      <author>zgn667</author>
      <guid>http://communities.vmware.com/message/813170?tstart=0#813170</guid>
      <dc:date>2007-12-07T00:11:35Z</dc:date>
      <clearspace:dateToText>1 year, 11 months ago</clearspace:dateToText>
      <clearspace:replyCount>8</clearspace:replyCount>
    </item>
    <item>
      <title>Re: Backup vbscript for VMWare Server: Only ~1min downtime</title>
      <link>http://communities.vmware.com/message/812502?tstart=0#812502</link>
      <description>&lt;br /&gt;
nope, as you can see in my post I've included the full path&lt;br /&gt;
&lt;p /&gt;
I've rebooted the server (didn't do that yesterday),but that doesn't make a difference. I've been playing with the script, but I can't find any errors.&lt;br /&gt;
&lt;p /&gt;
Vshadow -q tells me that there are no shadow copies on the system, so that isn't the problem either.&lt;br /&gt;
&lt;p /&gt;
 Any other suggestions (or another way to make backups of my virtual servers ?)</description>
      <pubDate>Thu, 06 Dec 2007 14:59:26 GMT</pubDate>
      <author>walter81</author>
      <guid>http://communities.vmware.com/message/812502?tstart=0#812502</guid>
      <dc:date>2007-12-06T14:59:26Z</dc:date>
      <clearspace:dateToText>1 year, 11 months ago</clearspace:dateToText>
      <clearspace:replyCount>9</clearspace:replyCount>
    </item>
    <item>
      <title>Re: Backup vbscript for VMWare Server: Only ~1min downtime</title>
      <link>http://communities.vmware.com/message/812121?tstart=0#812121</link>
      <description>just realized, its also possible that you put the full path to your vmx as \virtual machines\something.vmx without including the drive letter.  The script depends on the c: in the start of the path to know which drive to create the volume shadow on, so include it if you haven't.</description>
      <pubDate>Thu, 06 Dec 2007 00:25:07 GMT</pubDate>
      <author>zgn667</author>
      <guid>http://communities.vmware.com/message/812121?tstart=0#812121</guid>
      <dc:date>2007-12-06T00:25:07Z</dc:date>
      <clearspace:dateToText>1 year, 11 months ago</clearspace:dateToText>
      <clearspace:replyCount>39</clearspace:replyCount>
    </item>
    <item>
      <title>Re: Backup vbscript for VMWare Server: Only ~1min downtime</title>
      <link>http://communities.vmware.com/message/812120?tstart=0#812120</link>
      <description>try from the command line&lt;br /&gt;
vshadow c:(or any drive you want)&lt;br /&gt;
to see if it has some problem&lt;br /&gt;
you can also try vshadow -q to see if there are any existing volume shadows.  If there are some and you dont know what they are, they might have been created and then failed to delete.  Then you can do vshadow -da to delete any that exists.</description>
      <pubDate>Thu, 06 Dec 2007 00:22:06 GMT</pubDate>
      <author>zgn667</author>
      <guid>http://communities.vmware.com/message/812120?tstart=0#812120</guid>
      <dc:date>2007-12-06T00:22:06Z</dc:date>
      <clearspace:dateToText>1 year, 11 months ago</clearspace:dateToText>
    </item>
    <item>
      <title>Re: Backup vbscript for VMWare Server: Only ~1min downtime</title>
      <link>http://communities.vmware.com/message/811258?tstart=0#811258</link>
      <description>&lt;br /&gt;
okay, now I get this output:&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
C:\scripts&amp;gt;cscript.exe vm-vss-backup.vbs "e:\Virtual Machines\PPS_SR_WSUS\Window&lt;br /&gt;
s Server 2003 Standard Edition.vmx"&lt;br /&gt;
Microsoft (R) Windows Script Host Version 5.6&lt;br /&gt;
Copyright (C) Microsoft Corporation 1996-2001. All rights reserved.&lt;br /&gt;
&lt;p /&gt;
The Backup Script for VMware Server couldn't create a volume shadow or couldn't&lt;br /&gt;
copy the files from the volume shadow.&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
I did install the Volume Shadow client, and I added the path %programfiles%\....\release-server directory to the %path% variable And I've placed shadow.exe in the script directory.  &lt;br /&gt;
&lt;p /&gt;
&lt;br /&gt;</description>
      <pubDate>Wed, 05 Dec 2007 08:26:13 GMT</pubDate>
      <author>walter81</author>
      <guid>http://communities.vmware.com/message/811258?tstart=0#811258</guid>
      <dc:date>2007-12-05T08:26:13Z</dc:date>
      <clearspace:dateToText>1 year, 11 months ago</clearspace:dateToText>
      <clearspace:replyCount>41</clearspace:replyCount>
    </item>
    <item>
      <title>Re: Backup vbscript for VMWare Server: Only ~1min downtime</title>
      <link>http://communities.vmware.com/message/811205?tstart=0#811205</link>
      <description>If commenting the on error resume next still gives you an indescript the server cannot be shut down, it might be because there is something running on your vm that is preventing it from being shut down.  You can try the script on another vm, if possible, or you can make a test script that only tries to shut down the server to see if thats the problem.</description>
      <pubDate>Wed, 05 Dec 2007 05:19:36 GMT</pubDate>
      <author>zgn667</author>
      <guid>http://communities.vmware.com/message/811205?tstart=0#811205</guid>
      <dc:date>2007-12-05T05:19:36Z</dc:date>
      <clearspace:dateToText>1 year, 11 months ago</clearspace:dateToText>
      <clearspace:replyCount>42</clearspace:replyCount>
    </item>
    <item>
      <title>Re: Backup vbscript for VMWare Server: Only ~1min downtime</title>
      <link>http://communities.vmware.com/message/810663?tstart=0#810663</link>
      <description>Make sure you have VMTools installed on the Virtual Machine.  Also, the suggestion above, to comment out line 64 "On Error Resume Next", will give you a more informative error.</description>
      <pubDate>Tue, 04 Dec 2007 17:39:34 GMT</pubDate>
      <author>Gigaguy</author>
      <guid>http://communities.vmware.com/message/810663?tstart=0#810663</guid>
      <dc:date>2007-12-04T17:39:34Z</dc:date>
      <clearspace:dateToText>1 year, 11 months ago</clearspace:dateToText>
    </item>
    <item>
      <title>Re: Backup vbscript for VMWare Server: Only ~1min downtime</title>
      <link>http://communities.vmware.com/message/810327?tstart=0#810327</link>
      <description>&lt;br /&gt;
Hi&lt;br /&gt;
&lt;p /&gt;
 I'm trying to get this to work, but the Virtual Machine won't shut down. What could be the cause (and are there alternative ways to automaticall shut it off?). We use VMWare Server 1.04 (for as much as that matters)&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
thanks in advance for any help!</description>
      <pubDate>Tue, 04 Dec 2007 12:56:12 GMT</pubDate>
      <author>walter81</author>
      <guid>http://communities.vmware.com/message/810327?tstart=0#810327</guid>
      <dc:date>2007-12-04T12:56:12Z</dc:date>
      <clearspace:dateToText>1 year, 11 months ago</clearspace:dateToText>
      <clearspace:replyCount>44</clearspace:replyCount>
    </item>
    <item>
      <title>Re: Backup vbscript for VMWare Server: Only ~1min downtime</title>
      <link>http://communities.vmware.com/message/809422?tstart=0#809422</link>
      <description>I figured out what my problem was.  I'm running Windows 2003 R2 Enterprise Edition 64-bit and things were not working properly because the default cscript.exe in c:\windows\system32 was the 64-bit version.  Once I made the 32-bit version in c:\windows\syswow64 the default version, the script ran properly.  I had also discovered the hardcoded C: issue and changed that to D:</description>
      <pubDate>Mon, 03 Dec 2007 15:17:25 GMT</pubDate>
      <author>ktlevy</author>
      <guid>http://communities.vmware.com/message/809422?tstart=0#809422</guid>
      <dc:date>2007-12-03T15:17:25Z</dc:date>
      <clearspace:dateToText>1 year, 11 months ago</clearspace:dateToText>
      <clearspace:replyCount>45</clearspace:replyCount>
    </item>
    <item>
      <title>Re: Backup vbscript for VMWare Server: Only ~1min downtime</title>
      <link>http://communities.vmware.com/message/809122?tstart=0#809122</link>
      <description>I've updated the script to fix the problem, it now uses the first two letters from the path to the vmx file as the volume shadow drive</description>
      <pubDate>Mon, 03 Dec 2007 02:56:18 GMT</pubDate>
      <author>zgn667</author>
      <guid>http://communities.vmware.com/message/809122?tstart=0#809122</guid>
      <dc:date>2007-12-03T02:56:18Z</dc:date>
      <clearspace:dateToText>1 year, 11 months ago</clearspace:dateToText>
    </item>
    <item>
      <title>Re: Backup vbscript for VMWare Server: Only ~1min downtime</title>
      <link>http://communities.vmware.com/message/809117?tstart=0#809117</link>
      <description>Good job debugging, I should have noticed the drive thing when I wrote it.&lt;br /&gt;
Anyways, the only problems that I can really think of with the mailing stuff&lt;br /&gt;
is maybe you forgot to fill in the smtp variable near the top of the script&lt;br /&gt;
(line 72).  Whats the specific error you get when you run?</description>
      <pubDate>Mon, 03 Dec 2007 02:35:27 GMT</pubDate>
      <author>zgn667</author>
      <guid>http://communities.vmware.com/message/809117?tstart=0#809117</guid>
      <dc:date>2007-12-03T02:35:27Z</dc:date>
      <clearspace:dateToText>1 year, 11 months ago</clearspace:dateToText>
      <clearspace:replyCount>1</clearspace:replyCount>
    </item>
    <item>
      <title>Re: Backup vbscript for VMWare Server: Only ~1min downtime</title>
      <link>http://communities.vmware.com/message/809045?tstart=0#809045</link>
      <description>&lt;br /&gt;
Ok, still having CDO mail issues, but I figured out the issue.  My VM drive is E: not C:, the script line 657 is hard-coded to C:.  Any idea on how to get email working?  I checked google and done all the reinstall, and re-registering of dlls already.&lt;br /&gt;
&lt;p /&gt;
 Thanks, Great script !!!!!!</description>
      <pubDate>Sun, 02 Dec 2007 22:22:09 GMT</pubDate>
      <author>Gigaguy</author>
      <guid>http://communities.vmware.com/message/809045?tstart=0#809045</guid>
      <dc:date>2007-12-02T22:22:09Z</dc:date>
      <clearspace:dateToText>1 year, 11 months ago</clearspace:dateToText>
      <clearspace:replyCount>2</clearspace:replyCount>
    </item>
    <item>
      <title>Re: Backup vbscript for VMWare Server: Only ~1min downtime</title>
      <link>http://communities.vmware.com/message/809032?tstart=0#809032</link>
      <description>&lt;br /&gt;
Ok,  I had an error with CDO, so I just commented out all the "mailing" references.  Now I am getting a VShadow error.  The VM does actually shut down, but never restarts (im guessing because the script errors). The Vshadow error is "The backup script couldn't create a valume shadow or couldn't copy the files from the volume shadow".  vshadow.exe is both in my path and the directory I am running the script from.  And is enabled for the source drive (Where the VM's are).&lt;br /&gt;
&lt;p /&gt;
 Thanks.</description>
      <pubDate>Sun, 02 Dec 2007 21:56:46 GMT</pubDate>
      <author>Gigaguy</author>
      <guid>http://communities.vmware.com/message/809032?tstart=0#809032</guid>
      <dc:date>2007-12-02T21:56:46Z</dc:date>
      <clearspace:dateToText>1 year, 11 months ago</clearspace:dateToText>
    </item>
    <item>
      <title>Re: Backup vbscript for VMWare Server: Only ~1min downtime</title>
      <link>http://communities.vmware.com/message/808994?tstart=0#808994</link>
      <description>What arguments are you calling with the script, or are using the interactive&lt;br /&gt;
mode (just double clicking it)?  The script is failing to connect to vmware,&lt;br /&gt;
but I have the exact same code from the original script, which seems to&lt;br /&gt;
work.  Try commenting the line "On Error Resume Next" from the script (by&lt;br /&gt;
opening it with notepad then edit-&amp;gt;go to: Line 64 and adding a ' in front of&lt;br /&gt;
it, like the other comments above it) and running it again to see if it will&lt;br /&gt;
give you a more detailed message.  Tell me what it says then.</description>
      <pubDate>Sun, 02 Dec 2007 20:25:24 GMT</pubDate>
      <author>zgn667</author>
      <guid>http://communities.vmware.com/message/808994?tstart=0#808994</guid>
      <dc:date>2007-12-02T20:25:24Z</dc:date>
      <clearspace:dateToText>1 year, 11 months ago</clearspace:dateToText>
      <clearspace:replyCount>4</clearspace:replyCount>
    </item>
    <item>
      <title>Re: Backup vbscript for VMWare Server: Only ~1min downtime</title>
      <link>http://communities.vmware.com/message/808993?tstart=0#808993</link>
      <description>copyfiles and callback are created by the script and then deleted after it&lt;br /&gt;
runs.  What arguments are you calling with the script, or are using the&lt;br /&gt;
interactive mode (just double clicking it)?  The script is failing to&lt;br /&gt;
connect to vmware, but I have the exact same code from the original script.&lt;br /&gt;
Try commenting the line "On Error Resume Next" from the script (by opening&lt;br /&gt;
it with notepad then edit-&amp;gt;go to: Line 64 and adding a ' in front of it,&lt;br /&gt;
like the other comments above it) and running it again to see if it will&lt;br /&gt;
give you a more detailed message.  Tell me what it says then.</description>
      <pubDate>Sun, 02 Dec 2007 20:25:24 GMT</pubDate>
      <author>zgn667</author>
      <guid>http://communities.vmware.com/message/808993?tstart=0#808993</guid>
      <dc:date>2007-12-02T20:25:24Z</dc:date>
      <clearspace:dateToText>1 year, 11 months ago</clearspace:dateToText>
    </item>
    <item>
      <title>Re: Backup vbscript for VMWare Server: Only ~1min downtime</title>
      <link>http://communities.vmware.com/message/808841?tstart=0#808841</link>
      <description>Where do I get the copyfiles.bat and callback.bat?  Can I create them myself? Also, I keep getting the same error as ktlevy when trying to run the script.  The script from the original post works fine.&lt;br /&gt;
&lt;br /&gt;
Thanks.</description>
      <pubDate>Sun, 02 Dec 2007 14:27:16 GMT</pubDate>
      <author>Gigaguy</author>
      <guid>http://communities.vmware.com/message/808841?tstart=0#808841</guid>
      <dc:date>2007-12-02T14:27:16Z</dc:date>
      <clearspace:dateToText>1 year, 11 months ago</clearspace:dateToText>
      <clearspace:replyCount>1</clearspace:replyCount>
    </item>
    <item>
      <title>Re: Backup vbscript for VMWare Server: Only ~1min downtime</title>
      <link>http://communities.vmware.com/message/806167?tstart=0#806167</link>
      <description>&lt;br /&gt;
I can't seem to get the script to run properly.  Whenever I run it, I get the following error:&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-size:2"&gt;&lt;br /&gt;
The Backup Script for VMware Server couldn't create an appropriate connection.&lt;br /&gt;
Please check if all of the VMWare Services are up and running.&lt;br /&gt;
Please keep in mind, you can run this script on the local host only.&lt;br /&gt;
&lt;p /&gt;
 I am running VMware 1.04 and have VMware tools installed on my virtual machine.  &lt;br /&gt;
&lt;p /&gt;
 Any ideas?&lt;br /&gt;
&lt;br /&gt;
&lt;/span&gt;</description>
      <pubDate>Thu, 29 Nov 2007 00:46:27 GMT</pubDate>
      <author>ktlevy</author>
      <guid>http://communities.vmware.com/message/806167?tstart=0#806167</guid>
      <dc:date>2007-11-29T00:46:27Z</dc:date>
      <clearspace:dateToText>1 year, 12 months ago</clearspace:dateToText>
      <clearspace:replyCount>5</clearspace:replyCount>
    </item>
  </channel>
</rss>

