More VSHADOW stuff: how to backup Exchange, SQL, NTFS


While researching for the previous post, I just started a few searches for VSHADOW on the internet, and I found more interesting usages of it. One example: EqualLogic published a nice technical report of using VSHADOW to backup/restore Exchange, SQL and NTFS. Here is the link:


http://www.equallogic.com/docs/tr-ms-vshadow.pdf


Just to bring you up to speed: VSHADOW was written to showcase for VSS backup and restore capabilities. The source code is available on the VSS SDK. You can use VSHADOW to backup/restore Exchange/SQL/NTFS on any hardware array that implements VSS HW providers, in a similar way as outlined in the paper above.


 


P.S. BTW – standard disclaimers apply. I am not affiliated in any way with EqualLogic.

Comments (3)

  1. Nanaji says:

    Hi

    I m using below script to copy my outlook.pst file using vshadow.exe in windows XP profesisonal. My .pst file is located at

    C:Documents and SettingsUser deepinside.

    I m suspecting that , if the path is having space like e.g :C:\Documents and setting, C:Program Files. it is problem.

    can you please help me.

    My email is j_nanaji@hotmail.com

    setlocal

    @REM test if we are called by VSHADOW

    if NOT "%CALLBACK_SCRIPT%"=="" goto :IS_CALLBACK

    @REM

    @REM Get the source and destination path

    @REM

    set SOURCE_DRIVE_LETTER=%~d1

    set SOURCE_RELATIVE_PATH=%~pnx1

    set DESTINATION_PATH=%2

    @REM

    @REM Create the shadow copy – and generate env variables into a temporary script.

    @REM

    @REM Then, while the shadow is still live

    @REM recursively execute the same script.

    @REM

    @echo …Determine the scripts to be executed/generated…

    set CALLBACK_SCRIPT=%~dpnx0

    set TEMP_GENERATED_SCRIPT=GeneratedVarsTempScript.cmd

    @echo …Creating the shadow copy…

    %~dp0vshadow.exe -script=%TEMP_GENERATED_SCRIPT% -exec=%CALLBACK_SCRIPT% %SOURCE_DRIVE_LETTER%

    del /f %TEMP_GENERATED_SCRIPT%

    @goto :EOF

    :IS_CALLBACK

    setlocal

    @REM

    @REM This generated script should set the SHADOW_DEVICE_1 env variable

    @REM

    @echo …Obtaining the shadow copy device name…

    call %TEMP_GENERATED_SCRIPT%

    @REM

    @REM This should copy the file to the right location

    @REM

    @echo …Copying from the shadow copy to the destination path…

    copy "%SHADOW_DEVICE_1%%SOURCE_RELATIVE_PATH%" %DESTINATION_PATH%