Previous Topic: How to Prepare Setup Answer File for Specific OS ImageNext Topic: How to Perform a Floppy-less Disaster Recovery


Prepare DR Binaries for OS Image

You must prepare DR binaries and configure them to each OS image only once. Perform the following steps:

To prepare DR Binaries for the OS image

  1. Create a directory named BOOTDISK in the image directory as shown in the following example:
    X:\RemoteInstall\Setup\<Language>\Images\<ImageName>\BOOTDISK
    
  2. Insert the Arcserve Backup installation CD on the RIS server and copy all files available in the BOOTDISK directory of the root directory of the CD to the new BOOTDISK directory you just created.
  3. Create a directory drpatch.xp in the image directory as shown in the following example:
    X:\RemoteInstall\Setup\<Language>\Images\<ImageName>\drpatch.xp
    
  4. Copy all the files available in the BAB_HOME\drpatch.xp directory from the machine on which Arcserve Backup and Option for Disaster Recovery are installed, to the new drpatch.xp directory you just created.

    Note: To do this, you must have the Arcserve Backup Server on which Disaster Recovery Option is installed. You can find the BAB_HOME\drpatch.xp on the Arcserve Backup server machine in the following location:

    C:\Program Files\CA\ARCserve Backup
    
  5. For 32-bit Windows, create a Windows batch file named "DR_ASR.BAT" manually and copy it to the image directory as shown:
    X:\RemoteInstall\Setup\<Language>\Images\<ImageName>\DR_ASR.BAT
    

    The content of this batch file is as follows:

    rem X:\RemoteInstall\Setup\<Language>\Images\<ImageName>\DR_ASR.BAT
    
    echo off
    echo Creating DR directories ...
    if not exist "%SystemRoot%\SYSTEM32\DR"(
    call mkdir "%SystemRoot%\SYSTEM32\DR"
    )
    if not exist "%SystemRoot%\SYSTEM32\DR\DRIF" (
    call mkdir "%SystemRoot%\SYSTEM32\DR\DRIF"
    )
    if not exist "%SystemRoot%\SYSTEM32\DR\DISK" (
    call mkdir "%SystemRoot%\SYSTEM32\DR\DISK"
    )
    if not exist "%SystemRoot%\SYSTEM32\DR\ENU" (
    call mkdir "%SystemRoot%\SYSTEM32\DR\ENU"
    )
    echo Creating DR directories done
    echo Copying DR binary files ...
    pushd "%systemdrive%\$win_nt$.~ls\drpatch.xp\"
    call expand -r * %SystemRoot%\SYSTEM32\
    popd
    if exist "%systemdrive%\$win_nt$.~ls\drpatch.xp\ENU\" (
    pushd "%systemdrive%\$win_nt$.~ls\drpatch.xp\ENU\"
    call expand drlaunchres.dl_ %SystemRoot%\SYSTEM32\drlaunchenu.dll
    popd
    )
    pushd "%systemdrive%\$win_nt$.~ls\BOOTDISK\"
    call expand -r * %SystemRoot%\SYSTEM32\DR\
    popd
    
    if exist "%systemdrive%\$win_nt$.~ls\BOOTDISK\ENU\" (
    pushd "%systemdrive%\$win_nt$.~ls\BOOTDISK\ENU\"
    call expand -r * %SystemRoot%\SYSTEM32\DR\ENU\
    popd
    )
    
    echo Copying DR binary files done
    echo Copying DR emergency data ...
    
    pushd "%systemdrive%\$win_nt$.~ls\DR\%1\"
    call copy *.exe "%SystemRoot%\SYSTEM32\DR\" /Y
    popd
    pushd "%systemdrive%\$win_nt$.~ls\DR\%1\"
    call copy *.dll "%SystemRoot%\SYSTEM32\DR\" /Y
    popd
    pushd "%systemdrive%\$win_nt$.~ls\DR\%1\"
    call expand -r *_ %SystemRoot%\SYSTEM32\DR\
    popd
    pushd "%systemdrive%\$win_nt$.~ls\DR\%1\"
    call copy * "%SystemRoot%\SYSTEM32\DR\DRIF\" /Y
    popd
    pushd "%systemdrive%\$win_nt$.~ls\DR\%1\"
    call copy * "%SystemRoot%\SYSTEM32\DR\DISK\" /Y
    popd
    if exist "%SystemRoot%\SYSTEM32\DR\OBDRSIGN" (
    call del "%SystemRoot%\SYSTEM32\DR\OBDRSIGN" /Q
    )
    if exist "%SystemRoot%\SYSTEM32\DR\OBDRDTCT" (
    call del "%SystemRoot%\SYSTEM32\DR\OBDRDTCT" /Q
    )
    
    echo Copying DR emergency data done
    echo on
    
  6. For 64-bit Windows, create a Windows batch file named "DR_ASR.BAT" manually and copy it to the image directory as shown:
    X:\RemoteInstall\Setup\<Language>\Images\<ImageName>\DR_ASR.BAT
    
    
    

    The content of this batch file is as follows:

    rem E:\RemoteInstall\Setup\English\Images\W2K3\DR_ASR.BAT
    echo off
    echo Creating DR directories ...
    if not exist "%SystemRoot%\SYSWOW64\DR" (
    call mkdir "%SystemRoot%\SYSWOW64\DR"
    )
    if not exist "%SystemRoot%\SYSWOW64\DR\DRIF" (
    call mkdir "%SystemRoot%\SYSWOW64\DR\DRIF"
    )
    if not exist "%SystemRoot%\SYSWOW64\DR\DISK" (
    call mkdir "%SystemRoot%\SYSWOW64\DR\DISK"
    )
    if not exist "%SystemRoot%\SYSWOW64\DR\ENU" (
    call mkdir "%SystemRoot%\SYSWOW64\DR\ENU"
    )
    if not exist "%SystemRoot%\SYSWOW64\DR\Agent" (
    call mkdir "%SystemRoot%\SYSWOW64\DR\Agent"
    )
    echo Creating DR directories done
    echo Copying DR binary files ...
    
    pushd "%systemdrive%\$win_nt$.~ls\drpatch.xp\"
    call expand -r * %SystemRoot%\SYSWOW64\
    popd
    if exist "%systemdrive%\$win_nt$.~ls\drpatch.xp\ENU\" (
    pushd "%systemdrive%\$win_nt$.~ls\drpatch.xp\ENU\"
    call expand drlaunchres.dl_ %SystemRoot%\SYSWOW64\drlaunchenu.dll
    popd
    )
    pushd "%systemdrive%\$win_nt$.~ls\BOOTDISK\"
    call expand -r * %SystemRoot%\SYSWOW64\DR\
    popd
    if exist "%systemdrive%\$win_nt$.~ls\BOOTDISK\ENU\" (
    pushd "%systemdrive%\$win_nt$.~ls\BOOTDISK\ENU\"
    call expand -r * %SystemRoot%\SYSWOW64\DR\ENU\
    popd
    )
    pushd "%systemdrive%\$win_nt$.~ls\BOOTDISK\%3\"
    call expand -r * %SystemRoot%\SYSWOW64\DR\Agent\
    popd
    pushd "%systemdrive%\$win_nt$.~ls\BOOTDISK\Agent\%3\"
    call expand -r * %SystemRoot%\SYSWOW64\DR\Agent\
    popd
    pushd "%systemdrive%\$win_nt$.~ls\BOOTDISK\Agent\%3\%2\"
    call expand -r * %SystemRoot%\SYSWOW64\DR\Agent\
    popd
    
    pushd "%systemdrive%\$win_nt$.~ls\BOOTDISK\ETPKI\%3\"
    call expand -r * %SystemRoot%\SYSWOW64\DR\Agent\
    popd
    echo Copying DR binary files done
    echo Copying DR emergency data ...
    
    pushd "%systemdrive%\$win_nt$.~ls\DR\%1\"
    call copy *.exe "%SystemRoot%\SYSWOW64\DR\" /Y
    popd
    pushd "%systemdrive%\$win_nt$.~ls\DR\%1\"
    call copy *.dll "%SystemRoot%\SYSWOW64\DR\" /Y
    popd
    pushd "%systemdrive%\$win_nt$.~ls\DR\%1\"
    call expand -r *_ %SystemRoot%\SYSWOW64\DR\
    popd
    pushd "%systemdrive%\$win_nt$.~ls\DR\%1\"
    call copy * "%SystemRoot%\SYSWOW64\DR\DRIF\" /Y
    popd
    pushd "%systemdrive%\$win_nt$.~ls\DR\%1\"
    call copy * "%SystemRoot%\SYSWOW64\DR\DISK\" /Y
    popd
    if exist "%SystemRoot%\SYSWOW64\DR\OBDRSIGN" (
    call del "%SystemRoot%\SYSWOW64\DR\OBDRSIGN" /Q
    )
    if exist "%SystemRoot%\SYSWOW64\DR\OBDRDTCT" (
    call del "%SystemRoot%\SYSWOW64\DR\OBDRDTCT" /Q
    )
    
    echo Copying DR emergency data done
    echo on