lftp

lftp#

Scriptable FTP / SFTP / HTTP client with mirroring.

$ lftp -u operator,'Pw' sftp://files.example
$ lftp -e 'mirror -R local/ remote/; quit' sftp://files.example
$ lftp -c "set ftp:ssl-allow no; open ftp://host; mirror -R src dst"