Path: utzoo!attcan!uunet!samsung!umich!mailrus!uflorida!haven!aplcen!decuac!avolio From: avolio@decuac.DEC.COM (Frederick M. Avolio) Newsgroups: comp.unix.ultrix Subject: Re: copying "a" partitions Message-ID: <2959@decuac.DEC.COM> Date: 19 Mar 90 21:16:10 GMT References: <20692@dartvax.Dartmouth.EDU> Sender: news@decuac.DEC.COM Reply-To: avolio@decuac.DEC.COM (Frederick M. Avolio) Organization: Digital Equipment Corporation, SWS, Landover, MD Lines: 37 We use a shell script executed out of crontab. Uses dump. Doesn't require operator intervention. Fred -------------- 0 18 * * * /usr/adm/manager/rootbkup /usr/adm/manager/rootbkup is: #!/bin/sh # back up root to spare partition nightly -- avolio # mount /dev/ra7a /bck if test $? -ne 0 then echo problem mounting ra7a -- rootbkup not done| mail manager exit 1 fi umount /dev/ra7a newfs /dev/rra7a ra81 if test $? -ne 0 then echo newfs /dev/rra7a ra81 failed in rootbkup | mail manager exit 2 fi mount /dev/ra7a /bck if test $? -ne 0 then echo mount of /dev/ra7a after newfs failed in rootbkup | mail manager exit 3 fi cd / dump 0uf - / | (cd /bck ; restore xf -) >/dev/console cd / umount /dev/ra7a echo Auto-dump of root to bck done `date` |tee -a /usr/adm/opslog >/dev/console exit