Or just use ASR backup on XP or newer:

Run C:\path\to\do_asr.bat as the backuppc predump cmd.

Then just have backuppc pick up the contents of the E:\ASR directory (or 
whatever directory you direct the ASR to).

VERY convenient for VMs, but will also work for physical PCs.

(Please do a sanity check of the following to make sure lines do not 
wrap in your email client, and that it does what you want--I wrote it in 
~15 mins, but it seems to work)


do_asr.bat
----------
@echo off

@REM location of a large spool dir. Capable of holding the ASR image of C:
@REM Note that this must not be on C: itself. :)
@REM For convenient restores, make the spool dir on FAT32 and keep the
@REM size of C: to an absolute minimum

set SPOOLDIR=E:


@REM Most people use C: for their system drive, but adjust if needed
set SYSTEM_DRIVE_LETTER=C:

@REM Remove previous ASR backups. If you don't want to do this
@REM @REMark the next lines
rmdir /s /q %SPOOLDIR%\ASR >> NUL
mkdir %SPOOLDIR%\ASR >> NUL

@REM Get today's date and put it in the DATE variable in form YYYYMMDD

FOR /F "TOKENS=1* DELIMS= " %%A IN ('DATE/T') DO SET CDATE=%%B
FOR /F "TOKENS=1,2 eol=/ DELIMS=/ " %%A IN ('DATE/T') DO SET mm=%%B
FOR /F "TOKENS=1,2 DELIMS=/ eol=/" %%A IN ('echo %CDATE%') DO SET dd=%%B
FOR /F "TOKENS=2,3 DELIMS=/ " %%A IN ('echo %CDATE%') DO SET yyyy=%%B
SET DATE=%yyyy%%mm%%dd%

set FILENAME=%SPOOLDIR%\ASR\ASR-%DATE%.bkf

@REM Do the ASR backup
call %WINDIR%\system32\ntbackup.exe asrbackup /J "ASR backup" /f "%FILENAME%" 
/V:yes

@REM Grab the files necessary for the ASR floppy
mkdir %SPOOLDIR%\ASR\ASR-floppy-%DATE% >> NUL
copy %SYSTEMROOT%\Repair\Asr.sif %SPOOLDIR%\ASR\ASR-floppy-%DATE%\Asr.sif
copy %SYSTEMROOT%\Repair\Asrpnp.sif %SPOOLDIR%\ASR\ASR-floppy-%DATE%\Asrpnp.sif


Enjoy!

Cheers, Stephen
--
Stephen Joyce
Systems Administrator                                            P A N I C
Physics & Astronomy Department                         Physics & Astronomy
University of North Carolina at Chapel Hill         Network Infrastructure
voice: (919) 962-7214                                        and Computing
fax: (919) 962-0480                               http://www.panic.unc.edu

  Some people make the world turn and others just watch it spin.
    -- Jimmy Buffet

On Fri, 7 Sep 2007, therebel wrote:

> Sorry commands are :
> PRE
> vmrun pause /path/to/virtualmachine/vmx/file.vmx
>
> POST
> vmrun start /path/to/virtualmachine/vmx/file.vmx
>
> 2007/9/7, therebel <[EMAIL PROTECTED]>:
>>
>> If you want a consistant backup, a not expansive method is to use pre and
>> post command :
>>
>> PRE
>> vmrun stop /path/to/virtualmachine/vmx/file.vmx pause
>>
>> Do backup
>>
>> POST
>> vmrun stop /path/to/virtualmachine/vmx/file.vmx start
>>
>> In this way backup will be OK. But server will not be up during backup ..
>>
>> Marc
>>
>> 2007/9/7, Stephen Zemlicka <[EMAIL PROTECTED] >:
>>>
>>> I like the idea of backing up the vmware image.  That way you have very
>>> little restore time.  Just copy and you're up and running.  No reconfig
>>> necessary.  If you use rsync, shouldn't it just copy the changed data? I
>>> understand files on the image might move around but majority should stay
>>> the
>>> same and therefore the data wouldn't have to be copied for each backup.
>>>
>>> _____________________________
>>> Stephen Zemlicka
>>> Integrated Computer Technologies
>>> PH. 608-558-5926
>>> E-Mail [EMAIL PROTECTED]
>>> -----Original Message-----
>>> From: [EMAIL PROTECTED]
>>> [mailto:[EMAIL PROTECTED] ] On Behalf Of Carl
>>> Wilhelm Soderstrom
>>> Sent: Friday, September 07, 2007 11:43 AM
>>> To: [email protected]
>>> Subject: Re: [BackupPC-users] Backup VM
>>>
>>> On 09/07 11:36 , Jonathan Dumaresq wrote:
>>>> Hi all,
>>>> I start playing with VMware-server. I want to be able to backup the VM
>>>> image with backuppc. I would like to know also if someone here have
>>>> already deal with this ?
>>>
>>> Best thing to do is to just set up backups of each of the VMs as if they
>>> were independent boxes. that way you won't be backing up the VM image,
>>> which
>>> is a giant monolithic file which is constantly changing.
>>>
>>> don't back up the vmware disk images, unless there's no other way to do
>>> it.
>>>
>>> --
>>> Carl Soderstrom
>>> Systems Administrator
>>> Real-Time Enterprises
>>> www.real-time.com
>>>
>>>
>>> -------------------------------------------------------------------------
>>> This SF.net email is sponsored by: Splunk Inc.
>>> Still grepping through log files to find problems?  Stop.
>>> Now Search log events and configuration files using AJAX and a browser.
>>> Download your FREE copy of Splunk now >>  http://get.splunk.com/
>>> _______________________________________________
>>> BackupPC-users mailing list
>>> [email protected]
>>> https://lists.sourceforge.net/lists/listinfo/backuppc-users
>>> http://backuppc.sourceforge.net/
>>>
>>>
>>>
>>> -------------------------------------------------------------------------
>>> This SF.net email is sponsored by: Splunk Inc.
>>> Still grepping through log files to find problems?  Stop.
>>> Now Search log events and configuration files using AJAX and a browser.
>>> Download your FREE copy of Splunk now >>  http://get.splunk.com/
>>> _______________________________________________
>>> BackupPC-users mailing list
>>> [email protected]
>>> https://lists.sourceforge.net/lists/listinfo/backuppc-users
>>> http://backuppc.sourceforge.net/
>>>
>>
>>
>
>
> -- 
>
>

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
BackupPC-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/

Reply via email to