Reading Time: < 1 minute
Have you ever been in a need to easily synchronize with a remote host which only runs FTP server?
Or are you in a local network and you need to mirror a directory or a couple of directories in a fast and easy to remember way?
If so then you'll be happy to use below LFTP command that is doing pretty much the same as Rsync, with only difference that it can mirror files over FTP (old but gold File Transfer Protocol).
lftp -u FTP_USERNAME,FTP_PASSWORD -e 'mirror REMOTE_DIRECTORY LOCAL_DIRECTORY' FTP_SERVER_HOSTNAME
Enjoy and thanks to my dear friend Amridikon for the tip ! 🙂