On Mon, May 18, 2009 at 4:07 PM, s@mba
<samba@autistici.org> wrote:
Volendo si può fare anche tramite ssh !
----
You can use ssh in conjunction with tar to pull an entire directory tree
from a remote machine into your current directory:
$ ssh <username@sourcehost> tar cf - -C <sourcedir> . | tar xvf -
For example, let's say you have a "bsmith" account on a host called
"apple". You want to copy those files into your "bobsmith" account on a
host called "pear". You'd log into your "bobsmith@pear" account and type
the following:
Ecco, io pensavo invece di utilizzare la pipe al contrario: do il comando per comprimere e poi do la destinazione.
$ ssh bsmith@apple tar cf - -C /home/bsmith . | tar xvf -
This technique is useful when you have insufficient disk space on the
source machine to make an intermediate tarball.
----
from: http://www.shell-fu.org/lister.php?id=78
Ottimo, ho capito (o almeno credo, visto che non posso testare il tutto in questo momento! :)
;-) bye
--
s@mba
@ tutti:
A questo punto, mi chiedo: cosa converrebbe usare per i miei umili scopi? Rsync o tar?
Grazie a tutti per l'aiuto!
enjoy, ;)
giopas