Sample Back Up Script For Windows - Hitachi AMS2100 User Manual

Ams 2000 family copy-on-write snapshot
Hide thumbs Also See for AMS2100:
Table of Contents

Advertisement

Sample back up script for Windows

This section provides sample script for backing a volume on Windows.
echo off
REM Specify the registered name of the arrays
set UNITNAME=Array1
REM Specify the group name (Specify "Ungroup" if the pair
doesn't belong to any group)
set G_NAME=Ungrouped
REM Specify the pair name
set P_NAME=SS_LU0001_LU0002
REM Specify the directory path that is mount point of P-VOL
and V-VOL
set MAINDIR=C:\main
set BACKUPDIR=C:\backup
REM Specify GUID of P-VOL and V-VOL
PVOL_GUID=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
SVOL_GUID=yyyyyyyy-yyyy-yyyy-yyyy-yyyyyyyyyyyy
REM Unmounting the V-VOL
pairdisplay -x umount %BACKUPDIR%
REM
aureplicationlocal -unit %UNITNAME% -ss -resync -pairname
%P_NAME% -gname %G_NAME%
aureplicationmon -unit %UNITNAME% -evwait -ss -pairname
%P_NAME% -gname %G_NAME% -st paired –pvol
REM Unmounting the P-VOL
pairdisplay -x umount %MAINDIR%
REM
aureplicationlocal -unit %UNITNAME% -ss -split -pairname
%P_NAME% -gname %G_NAME%
aureplicationmon -unit %UNITNAME% -evwait -ss -pairname
%P_NAME% -gname %G_NAME% -st split –pvol
REM Mounting the P-VOL
pairdisplay -x mount %MAINDIR% Volume{%PVOL_GUID%}
REM Mounting the V-VOL
pairdisplay -x mount %BACKUPDIR% Volume{%SVOL_GUID%}
< The procedure of data copy from C:\backup to backup
appliance>
NOTE: In case Windows 2000, or Windows Server is used, the CCI mount
command must be used when mounting/un-mounting a volume. Also, the
GUID, which is displayed by the mountvol command, is needed as an
argument to use mount command of CCI.
Hitachi AMS 2000 Family Copy-on-Write SnapShot User Guide
Re-synchronizing pair (Updating the backup data)
Splitting pair (Determine the backup data)
Operations using CLI
B–19

Advertisement

Table of Contents
loading

This manual is also suitable for:

Ams2300Ams 2500

Table of Contents