{"id":2110,"date":"2019-04-21T20:42:58","date_gmt":"2019-04-21T18:42:58","guid":{"rendered":"http:\/\/labalec.fr\/erwan\/?p=2110"},"modified":"2019-04-26T22:07:08","modified_gmt":"2019-04-26T20:07:08","slug":"netcat-compression-and-dumping-disks","status":"publish","type":"post","link":"https:\/\/labalec.fr\/erwan\/?p=2110","title":{"rendered":"netcat, compression and backuping disks over the network"},"content":{"rendered":"<p>Following some notes around netcat <a href=\"https:\/\/labalec.fr\/erwan\/?p=1817\" target=\"_blank\" rel=\"noopener\">here<\/a> and <a href=\"http:\/\/reboot.pro\/topic\/18592-backup-a-live-windows-system-with-strarc-and-volume-shadow-copy\/#entry206959\" target=\"_blank\" rel=\"noopener\">here<\/a>.<\/p>\n<p>Some extra commands to backup a disk over the network :<\/p>\n<p>-listen on port 9000 and dump the raw file<br \/>\n<strong>nc -v -l -p 9000 &gt; dump.img<\/strong><br \/>\n(restore with\u00a0<strong>nc -v -l -p 9000 &lt; dump.img<\/strong>)<\/p>\n<p>-same but compressed with lz4 via stdin<br \/>\n<strong>nc -v -l -p 9000 | lz4.exe -1 stdin -f dump.lz4<\/strong><br \/>\n(restore with <strong>lz4 -l -c dump.lz4 | nc -v -l -p 9000<\/strong><br \/>\nand not with nc -v -l -p 9000 -e \u00ab\u00a0lz4.exe -c dump.lz4\u00a0\u00bb)<\/p>\n<p>-the same but with 7zip<br \/>\n<strong>nc -v -l -p 9000 | 7z a dump.7z -si<\/strong><br \/>\n(restore with <strong>7z e dump.7z -so | nc -v -l -p 9000<\/strong>)<\/p>\n<p>-the same but with bzip2<br \/>\n<strong>nc -v -l -p 9000 | bzip2 -z &gt; dump.gz<\/strong><br \/>\n(restore with <strong>bzip2 -cd &lt; dump.gz | nc -v -l -p 9000<\/strong>)<\/p>\n<p>&nbsp;<\/p>\n<p>lz4 can be downloaded <a href=\"https:\/\/github.com\/lz4\/lz4\/releases\" target=\"_blank\" rel=\"noopener\">here<\/a>.<br \/>\nbzip2 can be downloaded <a href=\"http:\/\/www.ltr-data.se\/opencode.html\/\" target=\"_blank\" rel=\"noopener\">here<\/a>.<br \/>\n7-zip can be downloaded <a href=\"https:\/\/www.7-zip.org\/download.html\" target=\"_blank\" rel=\"noopener\">here<\/a>.<br \/>\nnetcat can be downloaded <a href=\"https:\/\/eternallybored.org\/misc\/netcat\/\" target=\"_blank\" rel=\"noopener\">here<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Following some notes around netcat here and here. Some extra commands to backup a disk over the network : -listen on port 9000 and dump the raw file nc -v -l -p 9000 &gt; dump.img (restore with\u00a0nc -v -l -p 9000 &lt; dump.img) -same but compressed with lz4 via stdin nc -v -l -p 9000 <a href='https:\/\/labalec.fr\/erwan\/?p=2110' class='excerpt-more'>[&#8230;]<\/a><\/p>\n","protected":false},"author":7,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[26],"tags":[109],"class_list":["post-2110","post","type-post","status-publish","format-standard","hentry","category-clonedisk","tag-netcat","category-26-id","post-seq-1","post-parity-odd","meta-position-corners","fix"],"_links":{"self":[{"href":"https:\/\/labalec.fr\/erwan\/index.php?rest_route=\/wp\/v2\/posts\/2110","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/labalec.fr\/erwan\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/labalec.fr\/erwan\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/labalec.fr\/erwan\/index.php?rest_route=\/wp\/v2\/users\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/labalec.fr\/erwan\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2110"}],"version-history":[{"count":14,"href":"https:\/\/labalec.fr\/erwan\/index.php?rest_route=\/wp\/v2\/posts\/2110\/revisions"}],"predecessor-version":[{"id":2127,"href":"https:\/\/labalec.fr\/erwan\/index.php?rest_route=\/wp\/v2\/posts\/2110\/revisions\/2127"}],"wp:attachment":[{"href":"https:\/\/labalec.fr\/erwan\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2110"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/labalec.fr\/erwan\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2110"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/labalec.fr\/erwan\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2110"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}