
#	Copyright (c) 1984 AT&T
#	  All Rights Reserved

#	THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF AT&T
#	The copyright notice above does not evidence any
#	actual or intended publication of such source code.

#	ATT:#ident	"adm:tapesave.sh	1.3"

#ident	"@(#)adm:tapesave.sh	25.1"


#	This is a prototype file for tapesaves of file systems.
#	It may need to be modified for local use.
#	It will copy the named file system onto tape drive 0.

echo 'Enter file system name (e.g., usr):'
read f
echo 'Enter device name (e.g., /dev/rdsk/c0d0s2):'
read d
echo 'Enter pack volume label (e.g., p0045):'
read v
echo 'Enter the backup device (e.g., /dev/rmt1):'
read t
echo 'Enter tape volume label (e.g., t0005):'
read l

/etc/labelit  $t
if test  $? -gt 0
then
  /etc/labelit $t $f  $l -n
  if test $? -gt 0
  then
    exit 1
  fi
fi
/etc/volcopy $f $d $v $t $l
