Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!sdd.hp.com!hplabs!otter.hpl.hp.com!hpltoad!hpopd!hpcpbla!stevej From: stevej@hpcpbla.HP.COM (Steve Jerman) Newsgroups: comp.periphs.scsi Subject: Re: Random Access DAT Message-ID: <9850032@hpcpbla.HP.COM> Date: 18 Jun 91 08:52:41 GMT References: <1991Jun14.211246.4340@newshost.anu.edu.au> Organization: HP Computer Peripherals Bristol, UK Lines: 33 Oops I forgot the script ... #!/bin/ksh # Demo to show use on mt and cpio on DDS drive. set -x TAPE=/dev/foxy_n # (major num 54, minor num 0x0e0503) DIR1=/bin DIR2=/etc DIR3=/usr/lib #backup /bin #rewind tape mt -t $TAPE rew #backup directories for dir in $DIR1 $DIR2 $DIR3 do find $dir -print | cpio -oB > $TAPE mt -t $TAPE eof mt -t $TAPE bsf 1 done #no rewind mt -t $TAPE rew # space out 2 filemarks - to the lib directory mt -t $TAPE fsf 2 # and read the directory cpio -iBt < $TAPE