using 'dd' from one source to multiple destinations

Lennart Sorensen lsorense-1wCw9BSqJbv44Nm34jS7GywD8/FfD2ys at public.gmane.org
Mon Jan 24 19:44:03 UTC 2005


On Mon, Jan 24, 2005 at 02:31:04PM -0500, John Macdonald wrote:
> More simply:
> 
>     dd if=/dev/sda | tee /dev/sdb /dev/sdc > /dev/sdd
> 
> You'd only need to have the separate dd processes for each
> target if the dd was doing something more than copying the
> data, like converting ASCII to EBCDIC, or ensuring that the
> output had a specific blocksize (for a tape device, perhaps).
> 
> tee copies its input as many times as it needs for the arguments
> provided (plus one for its standard output).

dd also does IO error checking which might be appreaciated in this kind
of setup.  It might also perform better (at least if asking it to do
decent block sizes, like 128k or something that the HDs are likely to
like).

Lennart Sorensen
--
The Toronto Linux Users Group.      Meetings: http://tlug.ss.org
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://tlug.ss.org/subscribe.shtml





More information about the Legacy mailing list