{"id":752,"date":"2013-06-07T14:47:04","date_gmt":"2013-06-07T12:47:04","guid":{"rendered":"http:\/\/blog.philippgoecke.de\/?p=752"},"modified":"2013-06-07T14:49:03","modified_gmt":"2013-06-07T12:49:03","slug":"copy-image-via-netcat","status":"publish","type":"post","link":"https:\/\/stls.eu\/blog\/2013\/06\/07\/copy-image-via-netcat\/","title":{"rendered":"Copy Image via netcat"},"content":{"rendered":"<p>This is for a High-Bandwidth Network. If you have a Low-Bandwidth Network you can try to switch lzo with bzip2.<\/p>\n<p>Target:<br \/>\n<code>nc -v -l -p 19000 | lzop -c -d | pv -s 70G | dd bs=16M of=\/root\/foo.img<\/code><\/p>\n<ol>\n<li>listen on port 19000 for connections.<\/li>\n<li>decompress the datapackages.<\/li>\n<li>pv displays a status bar.<\/li>\n<li>and wirte them into a file.<\/li>\n<\/ol>\n<p>Source:<br \/>\n<code>dd bs=16M if=\/root\/bar.img | lzop -3 -c | nc -v 10.0.01 19000<\/code><\/p>\n<ol>\n<li>dd reads the file in 16MB Blocks.<\/li>\n<li>each block will be compressed with lzo.<\/li>\n<li>nc connects 10.0.01 on port 19000 and pushes data.<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>This is for a High-Bandwidth Network. If you have a Low-Bandwidth Network you can try to switch lzo with bzip2. Target: nc -v -l -p 19000 | lzop -c -d | pv -s 70G | dd bs=16M of=\/root\/foo.img listen on &hellip; <a href=\"https:\/\/stls.eu\/blog\/2013\/06\/07\/copy-image-via-netcat\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,15,34,27,1],"tags":[],"class_list":["post-752","post","type-post","status-publish","format-standard","hentry","category-linux","category-networking","category-setup","category-ubuntu","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/stls.eu\/blog\/wp-json\/wp\/v2\/posts\/752","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/stls.eu\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/stls.eu\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/stls.eu\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/stls.eu\/blog\/wp-json\/wp\/v2\/comments?post=752"}],"version-history":[{"count":6,"href":"https:\/\/stls.eu\/blog\/wp-json\/wp\/v2\/posts\/752\/revisions"}],"predecessor-version":[{"id":757,"href":"https:\/\/stls.eu\/blog\/wp-json\/wp\/v2\/posts\/752\/revisions\/757"}],"wp:attachment":[{"href":"https:\/\/stls.eu\/blog\/wp-json\/wp\/v2\/media?parent=752"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/stls.eu\/blog\/wp-json\/wp\/v2\/categories?post=752"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/stls.eu\/blog\/wp-json\/wp\/v2\/tags?post=752"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}