Mirror directory ftp

Mirror ftp in locale

Dovendo fare il mirror di un sito ftp ho trovato e testato un programma trovato in rete LFTP
Potete trovare una descrizione qui LFTP
Supporta IPV6 FTP, HTTP, FISH, SFTP, HTTPS and FTPS protocols.
Installazione su debian:

aptitude install lftp -y

Semplice script per il mirror del sito in locale:


Tra le varie opzioni:

-e commands    #Execute given commands and don't exit.
--only-newer   #download only newer files (-c won't work)

ftp:ssl-allow (boolean)
if  true,  try  to  negotiate SSL connection with FTP server for non-anonymous access.
Default is true. This and other SSL settings are only available if lftp  was  compiled
with an ssl/tls library.

mirror [OPTS] [source [target]]
Mirror  specified  source  directory  to local target directory. If the target directory ends
with a slash (except the root), the source base name is appended to  target  directory  name.
Source and/or target can be URLs pointing to directories.

Lascia un commento