It is one of the most advanced ftp/http client, file transfer program supporting a number of network protocols. It supports FTP, HTTP, FISH, SFTP, HTTPS and FTPS protocols. lftp has shell-like command syntax allowing you to launch several commands in parallel in background.
Following are some features of lftp:
# FTP and HTTP protocols support.
# FTP proxy support.
# HTTP proxy support.
# FTP over HTTP proxy support (hftp).
lftp can be used over rsync to set backup scripts to bakcup files to another (backup) server, if we dont have ssh access to the another (backup) server.
Following is an example for ftp a file using lftp to another server using one command line.
lftp -u ‘username,password’ backup.hosting.com -e “set ftp:ssl-protect-data true;mirror –reverse /local/dir/name remotedirname;exit” > /dev/null
username = ftp username
password = ftp password
backup.hosting.com = ftp hostname
/local/dir/name = is the file to copy to the ‘backup.hosting.com’
remotedirname = is the directory name in on ‘backup.hosting.com’ in which the file will be copied.