#!/bin/sh 
#
# backup <dump-level>
#
# This needs to be done as superuser. Dump level must be specified;
# uses dump level as a not-super-user flag too.

LEVEL=""
ME=`whoami`
if [ ${ME} = "root" ] ; then
	LEVEL=$1
fi

# Display the current dump status.
#cat /etc/dumpdates
grep "rwd0h" /etc/dumpdates
echo ""

if [ X${LEVEL} = "X" ] ; then
	echo "    Use  usrbackup <dump-level>"
	echo "    Must be run as root"
	exit
fi

dump ${LEVEL}uf /dev/rwt0 /usr

