Hi all,
I'm really in a miss
I was supposed to have this sorted out before now but i missed one point and i'm deploying a system to production now apparently this system won't have a backup if you guys won't help me with this
I'm having two LPARs one is connected to SAN and has two filesystems /image1 and /image2. I have mapped those two filesystems to the second LPAR.
in the old system, the backup was taken by i-node for /image1 and /image2 and of course before taking the backup both filesystems should be umounted!!
now i want to backup these two filesystems from LPAR2 (because this LPAR2 has the tape drive assigned to it so it acts like a centeral LPAR for backup) but of course i can't backup by i-node any more because /image1 and /image2 in LPAR2 are just nfs mounts.
so is there a way for backing up an nfs mounts by i-node?
The script that i made is this:
any help please
Regards,
Khalid
I'm really in a miss
I was supposed to have this sorted out before now but i missed one point and i'm deploying a system to production now apparently this system won't have a backup if you guys won't help me with this
I'm having two LPARs one is connected to SAN and has two filesystems /image1 and /image2. I have mapped those two filesystems to the second LPAR.
in the old system, the backup was taken by i-node for /image1 and /image2 and of course before taking the backup both filesystems should be umounted!!
now i want to backup these two filesystems from LPAR2 (because this LPAR2 has the tape drive assigned to it so it acts like a centeral LPAR for backup) but of course i can't backup by i-node any more because /image1 and /image2 in LPAR2 are just nfs mounts.
so is there a way for backing up an nfs mounts by i-node?
The script that i made is this:
Code:
DOW=`date | awk '{ printf $1 }'`
case $DOW in
Fri) LEVEL=0;;
Sat) LEVEL=1;;
Sun) LEVEL=2;;
Mon) LEVEL=3;;
Tue) LEVEL=4;;
Wed) LEVEL=5;;
Thu) LEVEL=6;;
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
#
if [ "$DATA_BACKUP" = "ok" -a "$IMAGE1_BACKUP" = "ok" -a "$IMAGE2_BACKUP" = "ok"
]
then
echo "Daily Backup ended at `date` successfully." >> /tmp/msg.txt
echo "Daily Backup ended successfully" > /dev/console
echo "Daily Backup ended at `date` successfully." >> /bapco.util/daily_bac
kup.log
else
echo "Daily Backup ended at `date` un-successfully." >> /tmp/msg.txt
echo "Daily Backup ended Un-successfully - Check status" > /dev/console
echo "Daily Backup ended Un-successfully at `date`." >> /bapco.util/daily_ba
ckup.log
fi
#
any help please
Regards,
Khalid