Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
#! /sbin/sh
#
# Backup Procedure "@(#)dumpdaily 1.3 07/08/02 (c) Scientific Analysis Instruments (SAI)"
#
# if we have passed in a parameter, and it is a number from 0 to 9 then use that.
if [ "x$1" != "x" ] && [ "$1" = "0" -o $1 -gt 1 -a $1 -lt 10 ] ; then Level=$1 ; else
DAY=`date +%a`;
# else split on the current day of the week.
case $DAY in
"Mon") Level=3 ;;
"Tue") Level=4 ;;
"Wed") Level=5 ;;
"Thu") Level=1 ;;
"Fri") Level=2 ;;
esac
fi
# Tape Device
DEVICE=/dev/rmt/1n
#
# Monday Level3
# Tuesday Level4
# Wednesday Level5
# Thursday Level1 Change tape today
# Friday Level2
#
#
#
# /
ufsdump ${Level}fu $DEVICE /dev/dsk/c0t0d0s0
#
# /usr/openwin
ufsdump ${Level}fu $DEVICE /dev/dsk/c0t0d0s1
#
# /var
ufsdump ${Level}fu $DEVICE /dev/dsk/c0t0d0s3
#
# /opt
ufsdump ${Level}fu $DEVICE /dev/dsk/c0t0d0s5
#
# /usr
ufsdump ${Level}fu $DEVICE /dev/dsk/c0t0d0s6
#
# /export/home
ufsdump ${Level}fu $DEVICE /dev/dsk/c0t0d0s7
# eject only after Level 1 dump, or level 0 dump
#
if [ "$Level" = "1" -o "$Level" = "0" ] ; then
# eject tape
eval `echo $DEVICE | awk '{
n=split($0,a,":"); if (n==1){ printf("mt -f %s offline",$0); } else { printf("rsh %s mt -f %s offline\n",a[1],a[2]); } }'`
fi