[Nottingham] HDD cloning via LAN

Simon Huggins huggie at earth.li
Tue Apr 27 16:54:57 BST 2004


Salut NLUG!

On Tue, Apr 27, 2004 at 04:53:37PM +0100, Simon Huggins wrote:
> On Tue, Apr 27, 2004 at 04:32:27PM +0100, Martin wrote:
> > Given two laptops, what is the best way to clone the hdd from one onto 
> > the other using their LAN connections?

> > That is, what mini-distro or utility is there to do:
> > dd if=ip-of-laptop1/dev/hda of=ip-of-laptop2/dev/hda
> You could hack something twisted up with nc.  It all sounds really
> dodgy though.

> Are you sure you wouldn't rather use tar?

> (cd / && tar cf - .) | ssh laptop2 "(cd / && tar xf -)"

Actually if you do do this expect fun things to happen as you try to
copy proc (bad) and try to replace things like /lib on the other
machine.

-- 
 _        huggie at earth.li      -+*+-     fou, con et anglais      _
(_)   Documentation is worth it just to be able to answer all    (_)
(_)               your mail with 'RTFM' - Alan Cox               (_)
  \___                                                        ___/



More information about the Nottingham mailing list