This is the backup script used to backup the files:
i used this commmand to view the backed up files:
but i couldn't find /image1 and image2 files in this tape
i'm trying to restore a file that was supposed to be in /image2 and the tape that i've got is the one backed up on Sunday 23 of April ( Sun) LEVEL=3;; )
I was doing this the whole day today so any clue is appreciated
regards
Khalid
Code:
find /usr/cimage/shared \
/usr/cimage/mtserv511 \
/san_ora_bkup \
-print > /tmp/daily_backup.list
cat /tmp/daily_backup.list | backup -iqf/dev/rmt0.1
#
if [ $? -eq 0 ]
then
DATA_BACKUP=ok
else
DATA_BACKUP=bad
fi
#
#-----------------------------------------------------------------------
#
# Determine which day of week it is and set the appropriate -Level for
# incremental backup.
#
DOW=`date | awk '{ printf $1 }'`
case $DOW in
Fri) LEVEL=1;;
Sat) LEVEL=2;;
Sun) LEVEL=3;;
Mon) LEVEL=4;;
Tue) LEVEL=5;;
Wed) LEVEL=6;;
Thu) LEVEL=7;;
esac
#
#------------------------------------------------------------------
#
# unmount /image1 and /image2 and take an appropriate backup by i-node
#
unmount /image1
unmount /image2
backup -$LEVEL -uf /dev/rmt0.1 /image1
if [ $? -eq 0 ]
then
IMAGE1_BACKUP=ok
else
IMAGE1_BACKUP=bad
fi
#
backup -$LEVEL -uf /dev/rmt0 /image2
if [ $? -eq 0 ]
then
IMAGE2_BACKUP=ok
else
IMAGE2_BACKUP=bad
fi
#
mount /image1
mount /image2
i used this commmand to view the backed up files:
Code:
restore -Tdvqf /dev/rmt0 > restore.log
but i couldn't find /image1 and image2 files in this tape
i'm trying to restore a file that was supposed to be in /image2 and the tape that i've got is the one backed up on Sunday 23 of April ( Sun) LEVEL=3;; )
I was doing this the whole day today so any clue is appreciated
regards
Khalid