[FSUG PD] Script con connessione ssh

Yuri yurj a alfa.it
Mar 11 Dic 2007 14:31:54 CET


Stefano Sasso wrote:
> Il 11/12/07, Stefano Sasso<stesasso a gmail.com> ha scritto:
>   
>> Il 11/12/07, Mirko Romanato<mirko.romanato a gmail.com> ha scritto:
>>     
>>> Ciao,
>>>  ho bisogno di scrivere uno script che stabilisca una connessione ssh,
>>> carichi un file e poi si disconnetta. Consigli?
>>>       
>> scp?
>>     
>
> ovviamente, autenticazione con chiavi se deve essere lanciato come cron job.
> ariciao
> stefano
>
>   
meglio rsync, perchč ti gestisce anche i trasferimenti interrotti. 
Ovviamente usa ssh come mezzo di trasporto :)

http://samba.anu.edu.au/rsync/features.html

rsync is a file transfer program for Unix systems. rsync uses the "rsync 
algorithm" which provides a very fast method for bringing remote files 
into sync. It does this by sending just the differences in the files 
across the link, without requiring that both sets of files are present 
at one of the ends of the link beforehand.

Some features of rsync include

    * can update whole directory trees and filesystems
    * optionally preserves symbolic links, hard links, file ownership,
      permissions, devices and times
    * requires no special privileges to install
    * internal pipelining reduces latency for multiple files
    * can use rsh, ssh or direct sockets as the transport
    * supports anonymous rsync
      <http://sunsite.auc.dk/SunSITE/rsync/rsync-mirroring.html> which
      is ideal for mirroring





Maggiori informazioni sulla lista fsug-pd