Skip to content

Instantly share code, notes, and snippets.

View melodie11's full-sized avatar

Joyce MARKOLL melodie11

View GitHub Profile
ssl:check-hostname (boolean)
when true, lftp checks if the host name used to connect to the
server corresponds to the host name in its certificate.
ssl:crl-file (path to file)
use specified file as Certificate Revocation List certificate.
ssl:crl-path (path to directory)
use specified directory as Certificate Revocation List certificate
repository (OpenSSL only).
ftp:web-mode (boolean)
disconnect after closing data connection. This can be useful for
totally broken ftp servers. Default is false.
ftps:initial-prot (string)
specifies initial PROT setting for FTPS connections. Should be one
of: C, S, E, P, or empty. Default is empty which means unknown, so
that lftp will use PROT command unconditionally. If PROT command
turns out to be unsupported, then Clear mode would be assumed.
file:charset (string)
local character set. It is set from current locale initially.
file:use-lock (boolean)
when true, lftp uses advisory locking on local files when opening
them.
file:use-fallocate (boolean)
when true, lftp uses fallocate(2) or posix_fallocate(3) to pre-al‐
locate storage space and reduce file fragmentation in pget and
Examples:
repeat at tomorrow -- mirror
repeat 1d mirror
reput lfile [-o rfile]
Same as `put -c'.
rm [-r] [-f] files
mget [-c] [-d] [-a] [-E] [-e] [-P N] [-O base] files
Gets selected files with expanded wildcards.
-c continue, reget.
-d create directories the same as file names and get the
files into them instead of current directory.
-E delete source files after successful transfer
-e delete target file before the transfer
-a use ascii mode (binary is the default)
lftp(1) General Commands Manual lftp(1)
NAME
lftp - Sophisticated file transfer program
SYNTAX
lftp [-d] [-e cmd] [-p port] [-u user[,pass]] [site]
lftp -f script_file
lftp -c commands
lftp --version