Managing the AMASS File System

>${TEMPFILE} >/tmp/BACKUPFILES cd /

cd ${MOUNTPT}

if [ -f /etc/archivedate ] then

#find . -newer /etc/archivedate -print >/tmp/BACKUPFILES

echo “ ” else

>/etc/archivedate

fi

if [ ${DAYTYPE} = 1 ] then

/bin/mv /etc/archivedate /etc/archivedate.AMASS

>/etc/archivedate rm /tmp/AMASSOUT* /usr/amass/bin/vollist awk ’

$2==’$VOLGRP’ {print $1" “$7}’ while read disk megs

do

/usr/amass/bin/volfilelist $disk >>${TEMPFILE}

COUNT=`expr ${COUNT} + ${megs} if [ ${COUNT} -ge ${NMEGS} ] then

COUNT=0

cat ${TEMPFILE} sort +1n +2n \ awk ’{print $1}’ >

/tmp/AMASSOUT${FILEINDEX} rm ${TEMPFILE} FILEINDEX=‘expr ${FILEINDEX} + 1‘

fi

6-00028-01 Rev A

Backup Scripts for HP-UX

A-9