Automatically download log files through FTP

Schedule a cron command that looks like this:

wget ftp://username:password@ftp_host/file_to_download

Can also specify file name masks: (in my case I want all .gz log files)

wget ftp://username:password@ftp_host/logs/*.gz

Advertisements