About
lftp speaks FTP, SFTP, HTTP and several other protocols, and can mirror whole directory trees in either direction. Use it when a task needs more than one file. It runs commands from a script as easily as from its own prompt.
Install it
pkg install lftp
Run this inside Termux. If the package is already present, pkg will say so and
do nothing.
Commands worth knowing
6 of the invocations you will actually reach for. Tap the copy button to put one on your clipboard.
lftp -u user,secret sftp://example.com Connect to a secure transfer server with credentials given on the command line. lftp ftp://ftp.example.com Open an interactive session to a public FTP server and browse it like a shell. lftp mirror /pub /local/pub Download an entire remote directory tree in one go. lftp mirror -R /local/site /public_html Upload a local directory tree to a server, refreshing only what changed. lftp -e "mirror --only-newer /pub" ftp://ftp.example.com Run a mirror and exit straight away. Suits a scheduled job. lftp -p 2222 sftp://example.com Reach a server listening on a non-standard port. Developed by
Alexander V. Lukyanov · released under GPL-3.0.