From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96075316706367.tru64-unix-managers.marc@archive.invalid> From: roddy () visual-ra ! swmed ! edu (Roddy McColl) Date: Thu, 05 Jan 1995 18:16:01 +0000 To: tru64-unix-managers Subject: Backup scripts and routines... X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96075316706367 Sender: alpha-osf-managers-relay@sws1.ctd.ornl.gov From: "Sarao, Robert" Reply-To: "Sarao, Robert" Date: Thu, 05 Jan 95 10:19:00 PST Followup-To: poster Encoding: 12 TEXT X-Mailer: Microsoft Mail V3.0 Good morning, I was wondering if anyone out there has a good set of scripts that they use for doing routine backups and restores..? I have some ideas but I am looking for something that someone has been running and feels very confident with. Thanks. Robert rsarao@powersoft.com Here's what I use for backup to an 8mm tape. I can get everything on it so I don't have to worry about changing tapes. For remote dumping there must be entry in root's .rhost for root on the other machine. This is perhaps a serious security problem. Oh well, I work at a University ;-) This in general works well, execept that my Sparstation with the Exabyte sometimes doesn't talk to it very well and the dump dies. Roddy McColl -------------------- l0dump shell script ---------------------------- #! /bin/sh # # Facility to dump (level 0) all filesystems to the Exabyte 8500 # attached to host "mc_with_the_exabyte" (Sparc 2 GS) # # # The machine with the Exabyte # N.B. Root rsh access required from other machines !! # DUMPHOST="mc_with_the_exabyte" # # The Exabytes tape specs # #TAPEDEV="/dev/rst8" #TAPENRDEV="/dev/nrst8" #DUMPARGS="0ucbdsf 64 54000 12000" # # Tape specs from Sun-General.faq # TAPEDEV="/dev/rst0" TAPENRDEV="/dev/nrst0" DUMPARGS="0ubdsf 126 54000 13000" # # Filesystem information for each machine # to use this dump mechanism. # I guess should be figured auto from /etc/fstab !! # if [ `hostname` = "mc_with_the_exabyte" ]; then FILESYS="/ /usr /home /usr/local /packages /data" elif [ `hostname` = "second_machine" ]; then FILESYS="/ /usr" elif [ `hostname` = "third_machine" ]; then FILESYS="/ /usr /var" fi # # assign tape cmd based on where to dump # if [ `hostname` = "$DUMPHOST" ]; then echo echo "Fsck-ing and Dump-ing locally on `hostname`..." echo MTCMD="mt -f $TAPEDEV" DUMPCMD="dump" DUMPHOST= DUMPSPACE= else echo echo "Fsck-ing then Dump-ing remotely to $DUMPHOST from `hostname`..." echo MTCMD="rsh $DUMPHOST mt -f $TAPEDEV" DUMPSPACE=":" DUMPCMD="rdump" fi # starting echo echo "Fsck and Level 0 dump proceeding..." echo # first rewind the tape $MTCMD rewind # now dump the file systems for FS in $FILESYS do echo "------ $FS ------" fsck $FS $DUMPCMD $DUMPARGS $DUMPHOST$DUMPSPACE$TAPENRDEV $FS done # rewind the tape $MTCMD rewind # done with tape $MTCMD offline # finished echo echo "Level 0 dump completed." echo # now reboot the machine # with a fastboot since systems should be clean echo echo "Rebooting now ..." echo sync sync fastboot