Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
server-administration:netcat-over-ssh [2012-07-20 18:45:36]
garrett.plasky Approved
server-administration:netcat-over-ssh [2013-01-31 22:40:11]
shaun.reitan [Using DD over Netcat]
Line 47: Line 47:
 <sxh plain>dd bs=16M if=/dev/sda|bzip2 -c|nc serverB.example.net 19000</sxh> <sxh plain>dd bs=16M if=/dev/sda|bzip2 -c|nc serverB.example.net 19000</sxh>
  
-You again will not see any output after you've hit Enter, but do not fret! You can start another session (or launch the netcat in a screen session and back out), and run a tcpdump on port 19000 on serverB to ensure that traffic is indeed flowing. You'll get a DD output on both ends summarizing the read/write time and bytes transferred when the process is complete. In this case no additional configuration is needed. /dev/sdb is a mountable and readable block device that's ready for use!+You again will not see any output after you've hit Enter, but do not fret! You can start another session (or launch the netcat in a screen session and back out), and run a tcpdump on port 19000 on serverB to ensure that traffic is indeed flowing. You can also send a USR1 signal to dd and it will output it's current statistics. You'll get a DD output on both ends summarizing the read/write time and bytes transferred when the process is complete.  In this case no additional configuration is needed. /dev/sdb is a mountable and readable block device that's ready for use!
  
 {{tag>how-to ubuntu upgrade administration recovery backups}} {{tag>how-to ubuntu upgrade administration recovery backups}}