def report
      return unless config[:email_report]
      msg = get_report()
			logger.info "Sending report via email to #{config[:mail_to]} ..."
      MiscUtils::send_email(
        :host => config[:mail_host],
        :port => config[:mail_port],
        :helodomain => config[:mail_helodomain],
        :user => config[:mail_user],
        :password => config[:mail_password],
        :from => config[:mail_from],
        :from_alias => config[:mail_from_alias],
        :to => config[:mail_to],
        :to_alias => config[:mail_to_alias],
				:auth => config[:mail_auth],
        :subject => 'backup report',
        :message => msg
      )
    end
def report
      return unless config[:email_report]
      msg = get_report()
			logger.info "Sending report via email to #{config[:mail_to]} ..."
      MiscUtils::send_email(
        :host => config[:mail_host],
        :port => config[:mail_port],
        :helodomain => config[:mail_helodomain],
        :user => config[:mail_user],
        :password => config[:mail_password],
        :from => config[:mail_from],
        :from_alias => config[:mail_from_alias],
        :to => config[:mail_to],
        :to_alias => config[:mail_to_alias],
				:auth => config[:mail_auth],
        :subject => 'backup report',
        :message => msg
      )
    end
"/usr/bin/env" sets normal vars
 eg. 30 14 * * * /usr/bin/env ruby /Users/kip/svn/thewall/script/runner /Users/kip/svn/thewall/app/delete_old_posts.rb
 http://www.ameravant.com/posts/recurring-tasks-in-ruby-on-rails-using-runner-and-cron-jobs
 install gems
 make folder with correct folder structure
 copy in files
 add to crontab, with just email sending, then call backup