Lftp

De WikiMar
Dreceres ràpides: navegació, cerca

Sync from an external ftp server

lftp ftps://ftplnx.aldea.net
user 746972@a..
ls
set ssl:verify-certificate no
ls
mirror -a -v -c --parallel=7 www.aldea.net/ /home/xx/Aldea.Net/
  • -a same as --allow-chown --allow-suid --no-umask
  • -v, --verbose[=level] verbose operation
  • -P, --parallel[=N] download N files in parallel (aldea accepts 7 max from the same IP, adding more it would display the error "mirror: Fatal error: gnutls_handshake: An unexpected TLS packet was received.")
  • -c is to continue and allows the mirror to continue from a previously failed transfer.

Other options:

  • --use-pget[-n=N] use pget to transfer every single file (multiple chunks per file parallel)
  • -n, --only-newer download only newer files (-c won't work)


MAN: http://linux.die.net/man/1/lftp

More info: http://www.cyberciti.biz/faq/lftp-mirror-example/