Re: tar/cpio data read from pipe?

From: Sally Woolrich <Sally_at_excelsis.demon.co.uk>
Date: 1995/11/03
Message-ID: <815410595snz_at_excelsis.demon.co.uk>#1/1


In article <bowtieDHFDxB.M8A_at_netcom.com> bowtie_at_netcom.com "Bill Dennen" writes:

> Try whatever | dd | cpio -ovcBO /dev/rmt/ctape ...

               ^^^^
I'm not sure what the 'dd' is for and I think the redirection is missing before '/dev/rmt/ctape'.

To make a cpio archive I use the following:

        find-command | cpio -ocvB > /dev/rmt0
or

        find-command | cpio -ocvB > /discfile

I use 'dd' to get a cpio archive from a tape without 'uncpioing' it:

        dd if=/dev/rmt0 of=/tmp/cpio-file bs=5120

and to write that file (or any other 'cpio' archive file) to tape:

        dd if=/cpio-file of=/dev/rmt0 bs=5120

which is jolly useful when you want to copy the contents of a tape onto another tape and don't have two tape drives.

Can't comment on 'tar' as I never use it.

-- 
============================================================================
Sally Woolrich                    |          This mail contains my personal
sally_at_excelsis.demon.co.uk        |          views not those of my employer!
============================================================================
Received on Fri Nov 03 1995 - 00:00:00 CET

Original text of this message