netcat dd

Posted by scottk on December 15, 2008 in Snippets, Sysadmin |

At one point I had this on here but I can’t find it via search this morning so I’ll just go ahead and add it again.

Useful for cloning drive partitions when you don’t have the advantage of a SAN. ( taken from here )

  • On Slave, run
    nc -l -p 9000 | dd of=/dev/sda
    (note that it is important to start with Slave)
  • On Master, run
    dd if=/dev/sda | nc 192.168.1.220 9000
  • Go have a drink

Copyright © 2006-2024 SimpIT.com All rights reserved.
This site is using the Desk Mess Mirrored theme, v2.5, from BuyNowShop.com.