{"id":168,"date":"2012-10-29T04:35:16","date_gmt":"2012-10-29T04:35:16","guid":{"rendered":"http:\/\/technese.com\/?p=168"},"modified":"2019-12-27T06:05:00","modified_gmt":"2019-12-27T06:05:00","slug":"dd-using-netcat","status":"publish","type":"post","link":"https:\/\/technese.com\/index.php\/2012\/10\/29\/dd-using-netcat\/","title":{"rendered":"dd using netcat to \/dev\/sdx \/ or from\/to image file"},"content":{"rendered":"\n<p>destination:<br \/><pre><code># nc -l 19000 | bzip2 -d | dd bs=16M of=\/dev\/sda<\/code><\/pre><\/p>\n<p>source:<br \/><pre><code># dd bs=16M if=\/dev\/sda | bzip2 -c | nc serverB.example.net 19000<\/code><\/pre><\/p>\n<p>Reference:<br \/><a href=\"http:\/\/www.ndchost.com\/wiki\/server-administration\/netcat-over-ssh\" target=\"_blank\" rel=\"noopener noreferrer\">http:\/\/www.ndchost.com\/wiki\/server-administration\/netcat-over-ssh<\/a><\/p>\n<p>OR<\/p>\n<p><strong>dd from source partition to destination image file<\/strong><\/p>\n<p>destination:<br \/><pre><code>#nc -l 19000 | bzip2 -d | dd bs=16M of=\/path\/imagefile.dd<\/code><\/pre><\/p>\n<p>source:<br \/><pre><code># dd bs=16M if=\/dev\/sda | bzip2 -c | nc source.server.com 19000<\/code><\/pre><\/p>\n<p><strong>dd from source image file to destination partition<\/strong><\/p>\n<p>destination:<br \/><pre><code>#nc -l 19000|bzip2 -d | dd bs=16M of=\/dev\/sda<\/code><\/pre><\/p>\n<p>source:<br \/><pre><code># dd bs=16M if=\/path\/imagefile.dd|bzip2 -c | nc source.server.com 19000<\/code><\/pre><\/p>\n","protected":false},"excerpt":{"rendered":"<p>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 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-168","post","type-post","status-publish","format-standard","hentry","category-general"],"_links":{"self":[{"href":"https:\/\/technese.com\/index.php\/wp-json\/wp\/v2\/posts\/168","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/technese.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/technese.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/technese.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/technese.com\/index.php\/wp-json\/wp\/v2\/comments?post=168"}],"version-history":[{"count":5,"href":"https:\/\/technese.com\/index.php\/wp-json\/wp\/v2\/posts\/168\/revisions"}],"predecessor-version":[{"id":271,"href":"https:\/\/technese.com\/index.php\/wp-json\/wp\/v2\/posts\/168\/revisions\/271"}],"wp:attachment":[{"href":"https:\/\/technese.com\/index.php\/wp-json\/wp\/v2\/media?parent=168"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/technese.com\/index.php\/wp-json\/wp\/v2\/categories?post=168"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/technese.com\/index.php\/wp-json\/wp\/v2\/tags?post=168"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}