Kommentare zu: Using netcat and tar for network file transfer http://www.screenage.de/blog/2007/12/30/using-netcat-and-tar-for-network-file-transfer/ Thu, 22 Oct 2015 22:23:33 +0000 hourly 1 https://wordpress.org/?v=4.4.1 Von: Using netcat and tar for network file transfer | pdasite http://www.screenage.de/blog/2007/12/30/using-netcat-and-tar-for-network-file-transfer/comment-page-1/#comment-84696 Mon, 01 Sep 2014 12:06:31 +0000 http://www.screenage.de/blog/2007/12/30/using-netcat-and-tar-for-network-file-transfer/#comment-84696 […] am 30. Dezember 2007 von […]

]]>
Von: OpenWrt Sysupgrade | Gotoif.com http://www.screenage.de/blog/2007/12/30/using-netcat-and-tar-for-network-file-transfer/comment-page-1/#comment-83381 Sun, 13 Apr 2014 14:17:55 +0000 http://www.screenage.de/blog/2007/12/30/using-netcat-and-tar-for-network-file-transfer/#comment-83381 […] http://www.screenage.de/blog/2007/12/30/using-netcat-and-tar-for-network-file-transfer/ […]

]]>
Von: simple-user http://www.screenage.de/blog/2007/12/30/using-netcat-and-tar-for-network-file-transfer/comment-page-1/#comment-82899 Wed, 29 Aug 2012 09:35:02 +0000 http://www.screenage.de/blog/2007/12/30/using-netcat-and-tar-for-network-file-transfer/#comment-82899 [root@localhost user]# tar c index.html | nc -q10 -l -7878
nc: invalid option — ‚q‘
usage: nc [-46CDdhklnrStUuvz] [-I length] [-i interval] [-O length]
[-P proxy_username] [-p source_port] [-s source] [-T ToS]
[-V rtable] [-w timeout] [-X proxy_protocol]
[-x proxy_address[:port]] [destination] [port]

]]>
Von: Kryztoval http://www.screenage.de/blog/2007/12/30/using-netcat-and-tar-for-network-file-transfer/comment-page-1/#comment-67010 Thu, 08 Dec 2011 16:59:09 +0000 http://www.screenage.de/blog/2007/12/30/using-netcat-and-tar-for-network-file-transfer/#comment-67010 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 | bunzip2 -vvv | tar -x
Sender: tar -c folder/ | bzip2 -vv9 | 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 „doing something“ 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.

]]>
Von: Litch http://www.screenage.de/blog/2007/12/30/using-netcat-and-tar-for-network-file-transfer/comment-page-1/#comment-42618 Tue, 12 Jul 2011 08:22:57 +0000 http://www.screenage.de/blog/2007/12/30/using-netcat-and-tar-for-network-file-transfer/#comment-42618 Had 1000’s of files varying from a few bytes to several 10’s of GB. Found that the following command provided the fastest transfer:

tar cz SRC_DIR | ssh root@DEST_SVR ‚cd DEST_DIR && tar xz‘

Over a crossover cable between servers it hovered at around 930 mbps.

]]>
Von: Marcel Duran http://www.screenage.de/blog/2007/12/30/using-netcat-and-tar-for-network-file-transfer/comment-page-1/#comment-40775 Thu, 30 Jun 2011 00:25:17 +0000 http://www.screenage.de/blog/2007/12/30/using-netcat-and-tar-for-network-file-transfer/#comment-40775 On Mac, netcat has no -q option nor -p seems to work as expected. The following solution (as „the sender“) seems to work fine:

tar c directory | nc -l localhost_or_ip 7878

found on: http://superuser.com/questions/115553/netcat-on-mac-os-x

]]>
Von: Simple File Transfers | eightbits.org http://www.screenage.de/blog/2007/12/30/using-netcat-and-tar-for-network-file-transfer/comment-page-1/#comment-30770 Thu, 10 Feb 2011 05:51:05 +0000 http://www.screenage.de/blog/2007/12/30/using-netcat-and-tar-for-network-file-transfer/#comment-30770 […] 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 […]

]]>
Von: DucQuoc.wordpress.com http://www.screenage.de/blog/2007/12/30/using-netcat-and-tar-for-network-file-transfer/comment-page-1/#comment-25891 Sat, 13 Nov 2010 08:09:11 +0000 http://www.screenage.de/blog/2007/12/30/using-netcat-and-tar-for-network-file-transfer/#comment-25891 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 :-)

]]>
Von: nc (netcat) « boompty boomp http://www.screenage.de/blog/2007/12/30/using-netcat-and-tar-for-network-file-transfer/comment-page-1/#comment-8926 Thu, 23 Apr 2009 02:42:54 +0000 http://www.screenage.de/blog/2007/12/30/using-netcat-and-tar-for-network-file-transfer/#comment-8926 […] here for more […]

]]>
Von: Anal http://www.screenage.de/blog/2007/12/30/using-netcat-and-tar-for-network-file-transfer/comment-page-1/#comment-936 Tue, 27 May 2008 14:49:11 +0000 http://www.screenage.de/blog/2007/12/30/using-netcat-and-tar-for-network-file-transfer/#comment-936 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.

]]>