Hi,
The lftp help is outdated. Example:
*man file*:
mirror [OPTS] [source [target]]
Mirror specified source directory to local target directory.
If target directory ends with a slash, the source base name is
appended to target directory name. Source
and/or target can be URLs pointing to directories.
-c, --continue continue a mirror job if possible
-e, --delete delete files not present at remote site
--delete-first delete old files before
transferring new ones
--depth-first descend into subdirectories
before transferring files
-s, --allow-suid set suid/sgid bits according
to remote site
--allow-chown try to set owner and group on files
--ascii use ascii mode transfers (implies
--ignore-size)
--ignore-time ignore time when deciding
whether to download
--ignore-size ignore size when deciding
whether to download
--only-missing download only missing files
--only-existing download only files already
existing at target
-n, --only-newer download only newer files (-c won't
work)
--no-empty-dirs don't create empty directories
(implies --depth-first)
-r, --no-recursion don't go to subdirectories
--no-symlinks don't create symbolic links
-p, --no-perms don't set file permissions
--no-umask don't apply umask to file modes
-R, --reverse reverse mirror (put files)
-L, --dereference download symbolic links as files
-N, --newer-than=SPEC download only files newer than
specified time
--on-change=CMD execute the command if
anything has been changed
--older-than=SPEC download only files older than
specified time
--size-range=RANGE download only files with size
in specified range
-P, --parallel[=N] download N files in parallel
--use-pget[-n=N] use pget to transfer every
single file
--loop loop until no changes found
-i RX, --include RX include matching files
-x RX, --exclude RX exclude matching files
-I GP, --include-glob GP include matching files
-X GP, --exclude-glob GP exclude matching files
-v, --verbose[=level] verbose operation
--log=FILE write lftp commands being executed
to FILE
--script=FILE write lftp commands to FILE,
but don't execute them
--just-print, --dry-run same as --script=-
--use-cache use cached directory listings
--Remove-source-files remove files after transfer
(use with caution)
-a same as --allow-chown --allow-suid
--no-umask
*lftp help*:
Uso: mirror [OPCS] [remoto [local]]
Duplica el directorio remoto especificado en uno local
-c, --continue si es posible continúa una tarea de duplicación de
directorios
-e, --delete borra archivos locales no presentes en el sitio remoto
-s, --allow-suid asigna los bits suid/sgid según sea su estado en
el sitio remoto
--allow-chown intentar asignar el propietario y el grupo a los
ficheros
--ignore-time ignora las fechas cuando se que ficheros se
descargan
-n, --only-newer transfiere sólo los archivos que sean más recientes
(no funciona con -c)
-r, --no-recursion no desciende por los subdirectorios
-p, --no-perms no asigna permisos en archivos
--no-umask no aplica umask a los modos de los archivos
-R, --reverse duplicación invertida (llevar archivos)
-L, --dereference descarga enlaces simbólicos como archivos comunes
-N, --newer-than=ESPEC transfiere sólo archivos más nuevos que la
fecha ESPEC
-P, --parallel[=N] descarga N archivos en paralelo
-i RX, --include RX incluye archivos según el patrón RX
-x RX, --exclude RX excluye archivos según patrón RX
RX es una expresión regular extendida
-v, --verbose[=N] indica un mayor número de mensajes de información
--log=FICHERP escribe los comandos lftp que se estén
ejecutando al archivo FICHERO
--script=FICHERO escribir los comandos lftp al archivo
FICHERO, pero no los ejecuta
--just-print, --dry-run igual que --script=-
Al usar -R, el primer directorio es local y el segundo es remoto.
Si se omite el segundodirectorio, se usa el primero.como base.
Si se omiten ambos, se usan los directorios local y remoto actuales.