Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Multiple Filesystems to tape?

Status
Not open for further replies.

essfor

MIS
Feb 21, 2001
3
0
0
CA
I am attempting to offload approximately 250gig of data to a single DLT 8000, so 40gig uncompressed, 80gig tape with perfect 2:1 compression. What is the best way to fit as much as I can to a tape?

ufsdump 0uf /dev/rmt/0cn /dev/rdsk/xxx /dev/rdsk/xxx

Or is there a more efficient way of doing this?
 
try this script ...
works for me hpe it'll work for you :)
note that the tte comand will output to screen and log so if you don't want to open an eye on it just remove the tee ...
#! /bin/sh
#preform a full dump to tape
#mail log to admin ....

bdate=`date +%d.%m.%y` #format date
log=/var/backup.$bdate.log #log file name
tape=/dev/nrst34 #tape device (change if needed )
tapehost=vampire #tape host
host=$1

#file number on tape
if [ $# -ne 1 ] ;then
echo "$0 : please enter host name "
exit 1
fi

export log bdate tapehost tape filenum host


for fs in `cat /etc/vfstab|grep -v "^#"|grep rdsk |grep -v swap |cut -f3` ;do
filenum=`rsh $tapehost mt -f $tape status|grep file|sed 's/block no= 0//'`
echo "" |tee -a $log
echo "" |tee -a $log
echo "" |tee -a $log
echo "-------------------------------------------------------" |tee -a $log
echo "backing $fs to $tapehost $tape $filenum" |tee -a $log
echo "-------------------------------------------------------" |tee -a $log
echo "" |tee -a $log
echo "" |tee -a $log
echo "" |tee -a $log
/usr/sbin/ufsdump 0dsbf 54000 36000 126 $tapehost:$tape $fs >> $log 2>&1
done
echo "$host filesystem table "
echo "-------------------------------------------------------" |tee -a $log
cat /etc/vfstab >> $log
echo "-------------------------------------------------------" |tee -a $log
df -lk |grep -v cdrom >> $log
echo "-------------------------------------------------------" |tee -a $log
mailx -s &quot;$host backup log&quot; user@host< $log
barazani
bara_zani@yahoo.com
&quot;Unix is user friendly. It's just selective about who its friends are.&quot;
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top