dd using netcat to /dev/sdx / or from/to image file

By technese - Last updated: Monday, October 29, 2012 - Save & Share - Leave a Comment

destination:

# nc -l 19000 | bzip2 -d | dd bs=16M of=/dev/sda

source:

# dd bs=16M if=/dev/sda | bzip2 -c | nc serverB.example.net 19000

Reference:
http://www.ndchost.com/wiki/server-administration/netcat-over-ssh

OR

dd from source partition to destination image file

destination:

#nc -l 19000 | bzip2 -d | dd bs=16M of=/path/imagefile.dd

source:

# dd bs=16M if=/dev/sda | bzip2 -c | nc source.server.com 19000

dd from source image file to destination partition

destination:

#nc -l 19000|bzip2 -d | dd bs=16M of=/dev/sda

source:

# dd bs=16M if=/path/imagefile.dd|bzip2 -c | nc source.server.com 19000

Posted in General • • Top Of Page