[comp.sources.wanted] CPIO verifier wanted

car@trux.UUCP (Chris Rende) (07/07/89)

Before I try to write it myself...

After creating a large CPIO archive on tape I want to verify the tape
contents with the original files on disk. Assume that there isn't enough
disk space to read the contents of the tape back online...
Does anyone have something to do this?

Something like this would be perfect:

find . -name "*" -print | cpio -aoBc >/dev/rmt0          # Create archive
find . -name "*" -print | cpioverify -aoBc </dev/rmt0    # Verify archive
if [ $? -ne 0 ]
then echo "Tape did not verify"

The same thing for TAR would be nice too...

Too bad that CMP can't take two pipes as input. :-)

car.
-- 
Christopher A. Rende           Central Cartage (Nixdorf/Pyramid/SysV/BSD4.3)
uunet!edsews!rphroy!trux!car   Multics,DTSS,Unix,Shortwave,Scanners,StarTrek
 ...!sharkey!rphroy!trux!car   Minix,PC/XT,Mac+,TRS-80 Model I: Buy Sell Trade
       "I don't ever remember forgetting anything." - Chris Rende