#!/bin/sh -x
#---------#---------#---------#---------#---------#---------#---------#---------
#
# title
#   copy files using wget which uses ftp 
# author
#   larg 13 march 08
# description
#   
# modifications
#
#---------#---------#---------#---------#---------#---------#---------#---------
# setup
   usage_message="
   usage:
      $0 
   example:
      the command
         $0
      returns
         something
   description
      mirror a remote dir to here
   "
# command line options
   # no options provided? tell the punter how to use this utility
   if [ $# -ne 0 ]; then
      echo "options were provided."
      echo "$usage_message" 1>&2
      exit 1
   fi


# main
    # do some stuff here
    cd /var/log/apache2/www.planetlarg.net/
    /usr/bin/wget --tries=5 --passive-ftp --mirror --no-directories \
        --ftp-user=larg --ftp-password=pass \
        ftp://ftp.isp.co.uk/logs/


