
Operations Using CLI A–9
Hitachi Simple Modular Storage Copy-on-Write SnapShot User’s Guide
Sample Back Up Script for WindowsThis 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 Re-synchoronizeing pair (Updating the backup data)
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 Splitting pair (Determine the backup data)
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>