Ftp Synchronisation

A customer of mine is making some files available to me on an FTP server. As I need those locally, I searched around for a solution to synchronize those files to a local folder.

I have found the great tool called lftp which is available from the Ubuntu’s repositories. I use that command in a crontab:

lftp ftp://user:password@ftp.host.com -e "mirror -e / /path/to/my/local/folder ; quit"