Xref: utzoo comp.periphs:3209 comp.unix.sysv386:1289 Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!apple!agate!shelby!msi.umn.edu!cs.umn.edu!quest!q5k!ssb From: ssb@quest.UUCP (Scott Bertilson) Newsgroups: comp.periphs,comp.unix.sysv386 Subject: Re: Backing up two computers on one tape with UUCP Keywords: uucp backup tar Message-ID: <1990Oct17.042252.1079@quest.UUCP> Date: 17 Oct 90 04:22:52 GMT References: <265@twg.wimsey.bc.ca> Organization: Quest Research, Inc. Lines: 40 Here's a script I've used to do something close to this on my 3b1 - once over a serial line at 9600 and more recently over a V.32 modem. The basic premise is that UUCP willingly copies from a named pipe on System V. I create 2 named pipes: cd /usr/spool/uucp; /etc/mknod p0 p; /etc/mknod p1 p The script then runs "find" into "cpio" into "compress" into "dd" into each of the named pipes in turn - broken up by "dd" because I had some problems UUCPing many megabytes into a single file. If it blows up part way along, you'll have to make sure there aren't any stray UUCP requests in the queue and start over. Please understand that this is a very crude hack. Please also understand that I have used it several times successfully. It *IS* possible to get UUCP to copy *in* to a named pipe on the remote end, but as you might imagine it can be difficult to catch it by specifying the correct "TM.XXXXX.YYY" filename. ------ X=0 N=0 rm -f /tmp/t.done if test -f /tmp/t.done then echo "Can't eliminate \"/tmp/t.done\". Can't continue." exit 1 fi find `ls -a | sed -e 1,2d -e '/^u$/d'` -depth -print 2>/tmp/t.find | cpio -ovcmauld 2>/tmp/t.cpio | ( compress -v 2>/tmp/t.compress; sleep 30; echo >/tmp/t.done) | while test ! -f /tmp/t.done do X=`expr 1 - $X` N=`expr $N + 1` uucp -r \~/p$X quest\!\~/ssb$N.cpio.Z dd bs=1k count=1000 of=/usr/spool/uucppublic/p$X done -- Scott S. Bertilson ...ssb@quest.UUCP scott@poincare.geom.umn.edu