Backing up two computers on one tape with UUCP

Scott Bertilson ssb at quest.UUCP
Wed Oct 17 14:22:52 AEST 1990


  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 at quest.UUCP
			scott at poincare.geom.umn.edu



More information about the Comp.unix.sysv386 mailing list