Piping output of tar(1) into another tar(1) command

Aled Morris aledm at qix.co.uk
Tue Nov 21 14:40:39 GMT 2006


On 21 Nov 2006, at 07:11, Matthew Seaman wrote:

> Matthew Seaman wrote:
>> Jonathan Schneider wrote:
>>>> with anything reasonable.  However dd defaults to doing IO in  
>>>> 512byte
>>>> blocks, and you'll make the whole process a tad more efficient by
>>>> upping the block size so you're doing fewer but larger writes to  
>>>> the
>>>> tape device.
>>> As I always say to people, use the cp command. It's easier on the
>>> fingers and defaults to blocks of several k usually.
>>
>> I'm curious as to exactly how you manage to direct the output of cp 
>> (1)
>> into a tape device?
>
> Uhhh... ENCOFFEE.  I mean how you manage to use cp(1) in a pipeline to
> direct the output in the tape device.

... | cp /dev/stdin /dev/rmt0

Aled






More information about the Ukfreebsd mailing list