<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Using netcat and tar for network file transfer</title>
	<atom:link href="http://www.screenage.de/blog/2007/12/30/using-netcat-and-tar-for-network-file-transfer/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.screenage.de/blog/2007/12/30/using-netcat-and-tar-for-network-file-transfer/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=using-netcat-and-tar-for-network-file-transfer</link>
	<description></description>
	<lastBuildDate>Wed, 01 Feb 2012 19:40:34 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Kryztoval</title>
		<link>http://www.screenage.de/blog/2007/12/30/using-netcat-and-tar-for-network-file-transfer/comment-page-1/#comment-67010</link>
		<dc:creator>Kryztoval</dc:creator>
		<pubDate>Thu, 08 Dec 2011 16:59:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.screenage.de/blog/2007/12/30/using-netcat-and-tar-for-network-file-transfer/#comment-67010</guid>
		<description>I have been using net cat for just a few days now.

My preferred way of transferring a file or a directory over the network is

Receiver: nc -l 3452 &#124; bunzip2 -vvv &#124; tar -x
Sender: tar -c folder/ &#124; bzip2 -vv9 &#124; nc 127.123.0.1 3452

The benefit is that I do not need to decompress the file on the receiving file, it decompresses by itself, I do not have to set a name or a folder name, tar will create those for me. I can just as easily omit the unzip and untag and save it.

I know tar -j does compression too, but I prefer to see the terminal &quot;doing something&quot; instead of staring at a blank screen.

I have seen savings of 40% of transfer time using this method and I like it a lot, even more so when moving VMs from one server to another.

Nice post.</description>
		<content:encoded><![CDATA[<p>I have been using net cat for just a few days now.</p>
<p>My preferred way of transferring a file or a directory over the network is</p>
<p>Receiver: nc -l 3452 | bunzip2 -vvv | tar -x<br />
Sender: tar -c folder/ | bzip2 -vv9 | nc 127.123.0.1 3452</p>
<p>The benefit is that I do not need to decompress the file on the receiving file, it decompresses by itself, I do not have to set a name or a folder name, tar will create those for me. I can just as easily omit the unzip and untag and save it.</p>
<p>I know tar -j does compression too, but I prefer to see the terminal &#8220;doing something&#8221; instead of staring at a blank screen.</p>
<p>I have seen savings of 40% of transfer time using this method and I like it a lot, even more so when moving VMs from one server to another.</p>
<p>Nice post.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Litch</title>
		<link>http://www.screenage.de/blog/2007/12/30/using-netcat-and-tar-for-network-file-transfer/comment-page-1/#comment-42618</link>
		<dc:creator>Litch</dc:creator>
		<pubDate>Tue, 12 Jul 2011 08:22:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.screenage.de/blog/2007/12/30/using-netcat-and-tar-for-network-file-transfer/#comment-42618</guid>
		<description>Had 1000&#039;s of files varying from a few bytes to several 10&#039;s of GB. Found that the following command provided the fastest transfer:

tar cz SRC_DIR &#124; ssh root@DEST_SVR &#039;cd DEST_DIR &amp;&amp; tar xz&#039;

Over a crossover cable between servers it hovered at around 930 mbps.</description>
		<content:encoded><![CDATA[<p>Had 1000&#8242;s of files varying from a few bytes to several 10&#8242;s of GB. Found that the following command provided the fastest transfer:</p>
<p>tar cz SRC_DIR | ssh root@DEST_SVR &#8216;cd DEST_DIR &amp;&amp; tar xz&#8217;</p>
<p>Over a crossover cable between servers it hovered at around 930 mbps.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marcel Duran</title>
		<link>http://www.screenage.de/blog/2007/12/30/using-netcat-and-tar-for-network-file-transfer/comment-page-1/#comment-40775</link>
		<dc:creator>Marcel Duran</dc:creator>
		<pubDate>Thu, 30 Jun 2011 00:25:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.screenage.de/blog/2007/12/30/using-netcat-and-tar-for-network-file-transfer/#comment-40775</guid>
		<description>On Mac, netcat has no -q option nor -p seems to work as expected.  The following solution (as &quot;the sender&quot;) seems to work fine:

tar c directory &#124; nc -l localhost_or_ip 7878

found on: http://superuser.com/questions/115553/netcat-on-mac-os-x</description>
		<content:encoded><![CDATA[<p>On Mac, netcat has no -q option nor -p seems to work as expected.  The following solution (as &#8220;the sender&#8221;) seems to work fine:</p>
<p>tar c directory | nc -l localhost_or_ip 7878</p>
<p>found on: <a href="http://superuser.com/questions/115553/netcat-on-mac-os-x" rel="nofollow">http://superuser.com/questions/115553/netcat-on-mac-os-x</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Simple File Transfers&#160;&#124;&#160;eightbits.org</title>
		<link>http://www.screenage.de/blog/2007/12/30/using-netcat-and-tar-for-network-file-transfer/comment-page-1/#comment-30770</link>
		<dc:creator>Simple File Transfers&#160;&#124;&#160;eightbits.org</dc:creator>
		<pubDate>Thu, 10 Feb 2011 05:51:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.screenage.de/blog/2007/12/30/using-netcat-and-tar-for-network-file-transfer/#comment-30770</guid>
		<description>[...] of performing file transfers with the netcat command. After reading up about it in this article and this article, I decided to throw together a couple of Bash scripts to make it even easier. The transmit script [...]</description>
		<content:encoded><![CDATA[<p>[...] of performing file transfers with the netcat command. After reading up about it in this article and this article, I decided to throw together a couple of Bash scripts to make it even easier. The transmit script [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: DucQuoc.wordpress.com</title>
		<link>http://www.screenage.de/blog/2007/12/30/using-netcat-and-tar-for-network-file-transfer/comment-page-1/#comment-25891</link>
		<dc:creator>DucQuoc.wordpress.com</dc:creator>
		<pubDate>Sat, 13 Nov 2010 08:09:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.screenage.de/blog/2007/12/30/using-netcat-and-tar-for-network-file-transfer/#comment-25891</guid>
		<description>IMHO, scp with proper options are fast enough:

scp -c arcfour256 -C -4 user@remotehost:Downloads/bigfile.iso . 

These options can be made implicit by using alias or ssh config file, too :-)</description>
		<content:encoded><![CDATA[<p>IMHO, scp with proper options are fast enough:</p>
<p>scp -c arcfour256 -C -4 user@remotehost:Downloads/bigfile.iso . </p>
<p>These options can be made implicit by using alias or ssh config file, too <img src='http://www.screenage.de/blog/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: nc (netcat) &#171; boompty boomp</title>
		<link>http://www.screenage.de/blog/2007/12/30/using-netcat-and-tar-for-network-file-transfer/comment-page-1/#comment-8926</link>
		<dc:creator>nc (netcat) &#171; boompty boomp</dc:creator>
		<pubDate>Thu, 23 Apr 2009 02:42:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.screenage.de/blog/2007/12/30/using-netcat-and-tar-for-network-file-transfer/#comment-8926</guid>
		<description>[...] here for more [...]</description>
		<content:encoded><![CDATA[<p>[...] here for more [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anal</title>
		<link>http://www.screenage.de/blog/2007/12/30/using-netcat-and-tar-for-network-file-transfer/comment-page-1/#comment-936</link>
		<dc:creator>Anal</dc:creator>
		<pubDate>Tue, 27 May 2008 14:49:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.screenage.de/blog/2007/12/30/using-netcat-and-tar-for-network-file-transfer/#comment-936</guid>
		<description>thanks for the tip.

another scenario where this is a lot useful is transferring file over a VPN connection.

this way you avoid the overhead - both in bandwidth usage and in CPU time - of double encypher/decypher and you can go as fast as you can. This can make a significant difference for slow connections and/or high load of data to transfer.

decompressing the tarfile on the fly on the destination machine is even better.</description>
		<content:encoded><![CDATA[<p>thanks for the tip.</p>
<p>another scenario where this is a lot useful is transferring file over a VPN connection.</p>
<p>this way you avoid the overhead &#8211; both in bandwidth usage and in CPU time &#8211; of double encypher/decypher and you can go as fast as you can. This can make a significant difference for slow connections and/or high load of data to transfer.</p>
<p>decompressing the tarfile on the fly on the destination machine is even better.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: TJB</title>
		<link>http://www.screenage.de/blog/2007/12/30/using-netcat-and-tar-for-network-file-transfer/comment-page-1/#comment-738</link>
		<dc:creator>TJB</dc:creator>
		<pubDate>Mon, 28 Apr 2008 14:37:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.screenage.de/blog/2007/12/30/using-netcat-and-tar-for-network-file-transfer/#comment-738</guid>
		<description>Sorry, in the last comment itshould be:

tar c directory_to_copy &#124; nc destination_host 7000</description>
		<content:encoded><![CDATA[<p>Sorry, in the last comment itshould be:</p>
<p>tar c directory_to_copy | nc destination_host 7000</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: TJB</title>
		<link>http://www.screenage.de/blog/2007/12/30/using-netcat-and-tar-for-network-file-transfer/comment-page-1/#comment-737</link>
		<dc:creator>TJB</dc:creator>
		<pubDate>Mon, 28 Apr 2008 14:36:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.screenage.de/blog/2007/12/30/using-netcat-and-tar-for-network-file-transfer/#comment-737</guid>
		<description>Another cool trick, to copy over directory, minus the ssh.

On the &quot;destination&quot; host where you want the files to end up:

nc -l 7000 &#124; tar -xvf -

On the &quot;source&quot; host, where the files are initially located:

tac c  &#124; nc  7000</description>
		<content:encoded><![CDATA[<p>Another cool trick, to copy over directory, minus the ssh.</p>
<p>On the &#8220;destination&#8221; host where you want the files to end up:</p>
<p>nc -l 7000 | tar -xvf -</p>
<p>On the &#8220;source&#8221; host, where the files are initially located:</p>
<p>tac c  | nc  7000</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ccm</title>
		<link>http://www.screenage.de/blog/2007/12/30/using-netcat-and-tar-for-network-file-transfer/comment-page-1/#comment-37</link>
		<dc:creator>ccm</dc:creator>
		<pubDate>Sun, 30 Dec 2007 12:27:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.screenage.de/blog/2007/12/30/using-netcat-and-tar-for-network-file-transfer/#comment-37</guid>
		<description>@bog: That&#039;s totally right. I prefer tar-ssh over scp in a lot of cases, too. In this setting here I just assumed you don&#039;t have and don&#039;t want to setup a ssh server.

@WebKid: Think you should the timeout flag as otherwise you have to ctrl-c after it&#039;s complete. Correct me if I am wrong but with tar I had to do this.</description>
		<content:encoded><![CDATA[<p>@bog: That&#8217;s totally right. I prefer tar-ssh over scp in a lot of cases, too. In this setting here I just assumed you don&#8217;t have and don&#8217;t want to setup a ssh server.</p>
<p>@WebKid: Think you should the timeout flag as otherwise you have to ctrl-c after it&#8217;s complete. Correct me if I am wrong but with tar I had to do this.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

