1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Web usage - collect data, ftp then clean

Discussion in 'Tomato Firmware' started by alienrex, Jan 5, 2011.

  1. alienrex

    alienrex Addicted to LI Member

    Hello!
    I would like to collect web usage data (every week or so), transfer data to external server (ftp,www) and then clean it.

    I need script - any idea how to make it (maybe some one already have it)?
     
  2. mikester

    mikester Network Guru Member

    Here's a script I used to use to backup the stats to a network share. It'll be a starting point for you...

    logger Shutdown BWM Log backup...started
    killall -1 rstats
    sleep 1
    tar c /tmp/var/lib/misc/rstats-* > "/tmp/rstats.tar"
    sleep 1
    cp "/tmp/rstats.tar" /cifs1/rstats.tar
    sleep 1
    rm "/tmp/rstats.tar"
    logger Shutdown BWM Log backup...finished
     
  3. shibby20

    shibby20 Network Guru Member

    easier set custom path in administration -> logging :)
     
  4. mikester

    mikester Network Guru Member

    hence "used to use" way back when...
     

Share This Page