Vrestore

 

Home
Up

Network Vrestore

Script :

rsh backup 'robot load slot 45 drive 2 robot mc8';

rsh backup 'sleep 40';

rsh backup 'mt -f /dev/nrmt2h online';

rsh backup 'sleep 40';

rsh backup 'mt -f /dev/nrmt2h rewind';

rsh backup 'mt -f /dev/nrmt2h fsf 2';

#rsh backup 'dd if=/dev/nrmt2h bs=60k'|vrestore -x -v -f - -D /;

#rsh backup 'dd if=/dev/nrmt2h bs=60k'|vrestore -x -v -f - -D /proc;

rsh backup 'dd if=/dev/nrmt2h bs=60k'|vrestore -x -v -f - -D /usr;

rsh backup 'dd if=/dev/nrmt2h bs=60k'|vrestore -x -v -f - -D /oracle/HRQ;

rsh backup 'dd if=/dev/nrmt2h bs=60k'|vrestore -x -v -f - -D /oracle/stage/stage_733;

rsh backup 'dd if=/dev/nrmt2h bs=60k'|vrestore -x -v -f - -D /sapmnt/HRQ;

rsh backup 'dd if=/dev/nrmt2h bs=60k'|vrestore -x -v -f - -D /usr/sap/trans;

rsh backup 'dd if=/dev/nrmt2h bs=60k'|vrestore -x -v -f - -D /usr/sap/HRQ;

rsh backup 'dd if=/dev/nrmt2h bs=60k'|vrestore -x -v -f - -D /oracle/HRX;

rsh backup 'dd if=/dev/nrmt2h bs=60k'|vrestore -x -v -f - -D /sapmnt/HRX;

rsh backup 'dd if=/dev/nrmt2h bs=60k'|vrestore -x -v -f - -D /usr/sap/HRX;

sleep 40;

rsh backup 'mt -f /dev/nrmt2h offline';

sleep 40;

rsh backup 'robot unload slot 45 drive 2 robot mc8';

Note : The script above is for robotic device. For autoloader device just eliminate all the command robot from the script.

Local Vrestore

Script :

#!/bin/ksh

robot load slot 0 drive 0 robot mc40;

sleep 40;

mt -f /dev/nrmt2h rewind;

mt –f /dev/nrmt2h fsf 2

#/sbin/vrestore -x -v -f /dev/nrmt2h -D /;

#/sbin/vrestore -x -v -f /dev/nrmt2h -D /usr;

/sbin/vrestore -x -v -f /dev/nrmt2h -D /oracle/P11;

/sbin/vrestore -x -v -f /dev/nrmt2h -D /oracle/P11/origlogA;

/sbin/vrestore -x -v -f /dev/nrmt2h -D /oracle/P11/origlogB;

/sbin/vrestore -x -v -f /dev/nrmt2h -D /oracle/P11/mirrlogA;

/sbin/vrestore -x -v -f /dev/nrmt2h -D /oracle/P11/mirrlogB;

/sbin/vrestore -x -v -f /dev/nrmt2h -D /oracle/P11/saparch;

/sbin/vrestore -x -v -f /dev/nrmt2h -D /oracle/P11/sapreorg;

/sbin/vrestore -x -v -f /dev/nrmt2h -D /oracle/P11/sapdata1;

/sbin/vrestore -x -v -f /dev/nrmt2h -D /oracle/P11/sapdata2;

/sbin/vrestore -x -v -f /dev/nrmt2h -D /oracle/P11/sapdata3;

/sbin/vrestore -x -v -f /dev/nrmt2h -D /oracle/stage/stage_723;

/sbin/vrestore -x -v -f /dev/nrmt2h -D /sapmnt/P11;

/sbin/vrestore -x -v -f /dev/nrmt2h -D /usr/sap/trans;

/sbin/vrestore -x -v -f /dev/nrmt2h -D /oracle/P11/sapdata11;

sleep 40;

mt -f /dev/nrmt2h offline;

Note : fsf 2 is used for rewinding the tape to third sequence of the tape beginning with 0 from vdump script, so fsf 2 will restore the data begin with file set number 3 (/oracle/P11) and we have to mark all the script before the third file set, look at the example above. We can restore from which file set, the most important thing is we have to run it sequentially according to vdump script. We have to remember the sequence of the vdump script so it’s better to make a documentation about the vdump script.

 

Vdump BackupBRBACKUP & BRARCHIVE

This page was last updated on 08/23/98.

iexplore.gif    iexplore.gif (14871 bytes)