[Linuxtrent] Re: netcat e trasferimento file...

  • From: Guido Brugnara <gdo@xxxxxxxxx>
  • To: linuxtrent@xxxxxxxxxxxxx
  • Date: Tue, 26 Oct 2004 08:36:35 +0200

Matteo Ianeselli wrote:

Il giorno sab, 23-10-2004 alle 01:13 +0200, Mirco Vivaldi ha scritto:


Mi e' funzionato per culo... o potrebbe venire utile?


Beh, di solito questo vien bene con ssh (e anche con l'antica remote
shell, per i folli che la usano ancora).

tar czf - foo | ssh utente@host 'cd /dest/dir && tar xzf -'

Chiaro che ssh poi critta e comprime, per cui il throughput è più alto
con netcat.

se usi:

tar czf - foo | ssh -C utente@host 'tar xzf - -C /dest/dir'


-C Requests compression of all data (including stdin, stdout, stderr, and data for forwarded X11 and TCP/IP connections). The compression algorithm is the same used by gzip(1), and the ``level'' can be controlled by the CompressionLevel option. Com­ pression is desirable on modem lines and other slow connections, but will only slow down things on fast networks. The default value can be set on a host-by-host basis in the configuration files; see the Compression option.


bye Guido




-- Per iscriversi (o disiscriversi), basta spedire un messaggio con OGGETTO "subscribe" (o "unsubscribe") a mailto:linuxtrent-request@xxxxxxxxxxxxx


Other related posts: