🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.next.sysadmin
Article #382

Re: dump and rdump (script)

#382
From: Paul S. Sears
Date: Tue, 04 Aug 1992 14:41
71 lines
3121 bytes
In article <BsFDDy.2Kp@oceania.com> john@oceania.com (John Robison) writes:
=>Paul S. Sears writes
=>> In article <BsAFCr.4Fw@ux1.cso.uiuc.edu> lemson@ux1.cso.uiuc.edu (David  
=>> Lemson) writes:
=>> =>john@oceania.com (John Robison) writes:
=>> =>
=>> =>>> 	I'm trying to backup a few Next Machines using rdump on a 
=>> =>>> sun Sparc 2. 
=>> =>>>
=>> =>>RTFM "man dump"
=>> =>
=>> =>Yep. Major hassle.  I even tried going around rdump by executing the
=>> =>following on a Sparc 2 with a tape drive on it:
=>> =>rsh nextmachine "dump sf 999999 -" | dd of=/dev/nrst0
=>> =>But no go...the dump is not readable (in fact, restore seems to core
=>> =>dump when it tries to read it!)
=>> =>If anyone else gets this to work, let me know...
=>> 
=>> I have an Archive Python DAT drive mounted on one of our NeXT servers  
=>and we  
=>> do many backups for various machines in the college using rdump from the  
=>other  
=>> machines onto the NeXT.  
=>>
=>I'd love to know your secret. I was unable to backup a
=>Sun 4/330, running SunOS 4.1.1 to a NeXT 040 Cube, running
=>NeXTStep 2.1. The reverse direction also did not work.
=>
=>Could you provide a sample command for all of us??
=>

Here is our generic script (will work on most platforms) that we use for  
remote dumps for a partition called /Users (level 0 dump!).  This can be  
tailored to whatever partition you like.  Note that we use /dev/nrst0 instead  
of /dev/rst0 for the device on the NeXT.  This script also dumps the output of  
rdump to a log.  We use the following to dump:

rdump-users.sh TAPE_LABEL remotehost user



#!/bin/sh
TAPE=/dev/nrst0
RHOST=$2
RUSER=$3
LOG=dump_tape-user.log

rsh ${RHOST} -l ${RUSER} -n mt -f ${TAPE} rewind

echo " " >> ${LOG}
echo "**************************************************************" >>${LOG}
echo -n "Dump started: " >>${LOG}
date >> ${LOG}
echo "Start of $1-/Users=" >> ${LOG}
/etc/rdump 0usf 60000 ${RHOST}:${TAPE} /Users 2>&1 | tee -a ${LOG}
rsh ${RHOST} -l ${RUSER} -n mt -f ${TAPE} eof
echo "End of $1-/Users=" >> ${LOG}
echo -n "Dump completed: " >>${LOG}
date >> ${LOG}

=>John
=>-- 
=>John Robison - Oceania Health Care Systems 
=>john@oceania.com - NeXTMail Gladly Accepted

--
Paul S. Sears               * sears@uh.edu (NeXT Mail OK)
The University of Houston   * suggestions@tree.egr.uh.edu (NeXT
Engineering Computing Center*     comments, complaints, questions)
NeXT System Administration  * DoD#1967 '83 NightHawk 650SC SSI#755020059
"Programming is like sex: One mistake and you support it a lifetime."
Technical Details
Message-ID: <1992Aug4.144126.27360@menudo.uh.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!dtix!darwin.sura.net!zaphod.mps.ohio-state.edu!menudo.uh.edu!usenet
References: <BsFDDy.2Kp@oceania.com>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!dtix!darwin.sura.net!zaphod.mps.ohio-state.edu!menudo.uh.edu!usenet
From: sears@tree.egr.uh.edu (Paul S. Sears)
Newsgroups: comp.sys.next.sysadmin
Subject: Re: dump and rdump (script)
Message-ID: <1992Aug4.144126.27360@menudo.uh.edu>
Date: 4 Aug 92 14:41:26 GMT
References: <BsFDDy.2Kp@oceania.com>
Sender: usenet@menudo.uh.edu (USENET News System)
Reply-To: sears@tree.egr.uh.edu
Distribution: na
Organization: University of Houston
Lines: 71
Nntp-Posting-Host: flower.egr.uh.edu