File Transfer SYSV.0 --> BSD4.1 :-(
Kenneth Almquist
ka at june.cs.washington.edu
Sat Jan 30 04:32:08 AEST 1988
> Does anyone know of any tape utilities that are preferably
> multi-volume AND compatible between the two flavors of Unix?
One possiblity is to use tar, and write your own programs for
handling multiple tapes. Here are some sample shell scripts
(untested, but they should give you the idea).
-----------------------------------
# twrite - write multiple tapes
# usage: tar ... | twrite
while test true
do echo 'mount next tape and type return:\c'
(read line) <&2
dd of=/dev/rmt0 obs=5120 count=6000
done
-----------------------------------
# tread - read multiple tapes
# usage: tread | tar ...
while test true
do echo -n 'mount next tape and type return:' >&2
read line
dd if=/dev/rmt0 ibs=5120
done
-----------------------------------
These programs will keep asking you to mount new tapes indefinitely
so you have to hit delete to kill them after the last tape. Kind of
grungy, but hey, what do you want for 5 lines of shell script?
Kenneth Almquist
More information about the Comp.unix.questions
mailing list