
: run with command 'atar # > atar_yymmdd.lis'
:     where '#' is the number of tar files to skip before writing
:           'yymmdd' are the year, month, day of backup
:
: print data and directory
date
pwd
devout=/dev/rmt/1un
: give size of directories and total '.'
du -s [A-Z]*
du -s
: rewind to beginning of tape
mt -f $devout rewind
count=` expr $1`
if test $count -gt 0
   then echo " skip $count files on tape before writing"
        mt -f $devout fsf $count
   else echo " skip no files on tape before writing"
fi
count=` expr $count + 1`
echo "write tar file $count with 'tar cvf $devout .' "
tar cvf $devout .
echo 'rewind tape'
mt -f $devout rewoff
