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

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s