tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
* Backup scripts and routines...
@ 1995-01-05 10:19 Sarao, Robert
  0 siblings, 0 replies; 3+ messages in thread
From: Sarao, Robert @ 1995-01-05 10:19 UTC (permalink / raw)
  To: tru64-unix-managers



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

^ permalink raw reply	[flat|nested] 3+ messages in thread
* Re:  Backup scripts and routines...
@ 1995-01-05 17:56 Thomas G. Kreutz
  0 siblings, 0 replies; 3+ messages in thread
From: Thomas G. Kreutz @ 1995-01-05 17:56 UTC (permalink / raw)
  To: tru64-unix-managers

Hi,
  If you get any really good scripts, I'd love to try one out!
Thanks very much.  Tom

^ permalink raw reply	[flat|nested] 3+ messages in thread
* Backup scripts and routines...
@ 1995-01-05 18:16 roddy
  0 siblings, 0 replies; 3+ messages in thread
From: roddy @ 1995-01-05 18:16 UTC (permalink / raw)
  To: tru64-unix-managers


   Sender: alpha-osf-managers-relay@sws1.ctd.ornl.gov
   From: "Sarao, Robert" <sarao@concord6.powersoft.com>
   Reply-To: "Sarao, Robert" <sarao@concord6.powersoft.com>
   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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~1995-01-05 18:16 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1995-01-05 10:19 Backup scripts and routines Sarao, Robert
  -- strict thread matches above, loose matches on Subject: below --
1995-01-05 17:56 Thomas G. Kreutz
1995-01-05 18:16 roddy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox