Skip to content

Tanya Nam

Random tips on Wordpress, MongoDB, Javascript

  • About
  • Contact Me

Month: July 2009

Automatically download log files through FTP

On July 7, 2009 By ntanya54In TechnologyLeave a comment

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

Archives

  • October 2015
  • July 2015
  • June 2015
  • May 2015
  • April 2015
  • March 2015
  • July 2013
  • May 2013
  • March 2013
  • February 2013
  • January 2013
  • December 2012
  • November 2012
  • October 2012
  • September 2012
  • August 2012
  • July 2012
  • June 2012
  • April 2012
  • March 2012
  • October 2011
  • September 2011
  • May 2011
  • July 2009
  • June 2009
  • May 2009
  • April 2009
  • February 2009
  • November 2008
  • October 2008
  • September 2008
  • August 2008
  • July 2008
  • May 2008
  • March 2008
  • November 2007
  • October 2007
Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.
To find out more, including how to control cookies, see here: Cookie Policy