Clone a hard disk to two or more hard disks simultaneously
Clone to two hard disks at once!
nohup dd bs=1M if=/dev/sdc | tee >(dd bs=1M of=/dev/sda) | dd bs=1M of=/dev/sdb &
To clone to more hard disks, pipe to more tee >(dd bs=1M of=/dev/sda) in between. Just make sure to end the command with dd, to prevent the output from being displayed in the terminal.
E.g. three targets:
nohup dd bs=1M if=/dev/sda | tee >(dd bs=1M of=/dev/sdb) | tee >(dd bs=1M of=/dev/sdc) | dd bs=1M of=/dev/sdd &
>() construct is a shell feature that allows an output command to be used instead of an output file. The shell creates a temporary file name and substitutes it in place of that expression. The command sending the output will write to the temporary file, and the output will be redirected to the standard input of whatever command is inside the parenthesis.