
#	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:filesave.sh	1.3"

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


#	The following prototype is meant as a guide in setting
#	up local filesave procedures.  It copies the BOOT, ROOT
#	and USR file systems from drive 0 to another drive.

if [ $# != 3 ]
then
	echo usage: filesave boot_destination root_destination usr_destination
	exit 2
fi
# don mhd 1
date >> /etc/log/filesave.log
dd if=/dev/rdsk/c0d0s15 $1
volcopy root /dev/rdsk/c0d0s0 - $2 -
volcopy usr /dev/rdsk/c0d0s2 - $3 -
echo FILESAVE COMPLETED >> /etc/log/filesave.log
# doff mhd 1
