jrliii - logo
Hey, Thanks for stopping by!!
This is B-o-B's Page for Local Operations on jrliii.mine.nu
:)

Logzilla
Current Version 3.0
As JRLIII's main page indicates, this server is used a lot for FTP (File Transfer Protocol). 
I am one of the people who use this server for FTP.
I wanted to be able to keep a record of the files I was uploading here, so I  made a little mocheezemo BASH script named "LOGZILLA" to do this for me.

Logzilla generates the below reports of my latest uploads to this FTP service, and keeps an on-going historical log as well.  Logzilla also automaticly e-mails the latest log generated to JRL-III & B-o-B for easy reference & viewing.
Check the
Entire
Upload Log
Logzilla
view the script
that runs these logs

Logzilla
Program
Change-Log

Here are historical versions of Logzilla
Version 2.1

HowTo
run a web (http) mirror of jrliii.mine.nu
Much like Bad Ass JRL-III, I also run my own web-server at my house.  I like to tinker with things, so I set-up a mirror of JRL-III's site on my web server.
Check Out JRL-III's Mirror on B-o-B's Server
JRL-III is a "user" on my server, and I have my server set-up so "user"s can have their own /www area.  Since JRL-III already has his own server, I figured his "user"s /www on my server would be of no use to JRL-III.
So, while drinking way too much coffee one Saturday morning, I set-up my server to make a mirror of jrliii.mine.nu. 

The server that runs the mirror of jrliii.mine.nu runs on Slackware Linux.  I wrote a few BASH scripts with the thought of running them as cron(time) jobs on my server. 
Script Name
Frequency
Description
jrliii-web-mirror
1 x Day
This is the main BASH script that runs the mirror.  Basicly the script uses a few extra options with the wget command, and creates the mirror in JRL-III's "user"s /public_html area on my server.  It only creates a mirror of things that are linked from the main "index.html", or a link of a link(spider crawl web search style) from the original index.html page.  Non-linked items residing on the  JRL-III's server are not mirrored.  Once the mirror is set-up & working (which it is), I put this script in my servers /etc/cron.daily.  So this script will be run daily.  My servers daily cron jobs start running around 04:40 am CST (there are many now, so sometimes it takes a while to finish them all, sometimes) .  When the script is run now, it downloads any newly added material, and deletes any material (locally on my server) that has been removed.  The script then matches the existing files I have with JRL-III's existing files.  Any changes in the date stamp (meaning a modification has occured), and that file is downloaded.  The script also keeps a log of the daily activity for me.
Note:   there is an open-source version of wget for M$ windows.  With a little of this, or perhaps a little of that, you could make this work on a M$ windows machine with a web server.
jrliii-mirror-log-recycler
1 x Month
since I have instructed the above to script to log its every action, it produces a large log file.  Even though the download activity might be low, the log activity is high because every file is checked & verified daily.  So, to keep the log file from getting out of hand, and bogging my server, I will move (append) to to *.old each month.  This file moves the current log to *.old, and produces a new blank template for new the new months logs to come.
blank.log
n/a
This is the blank log template used in the above monthly log recycler script.  This script was developed awhile back, for use with all my mirrors.  As you will see below, I view these logs on my web server.  So, since I recycle(remove) the logs from time to time, I added this blank so their would always be a file on the web server (and not a dead link, until the mirror log is run & added again).
logs-to-http
1 x Hour
I like to check my server from time to time to make sure the mirrors I run are all working when they should be.  This script was developed to make my *.mirror.logs viewable from my main web-server.  I like this because I can check from anywhere, and the owners of the sites I mirror can check easily too.  There is no way to know when all my mirroring (logging) will be done each day, so I have this script run each hour updating the logs on the website.  This script also keeps a log for me each time it is run.  Since this existed already for my mirrors, I added in the specs for jrliii.mine.nu.
 Click Here To View the logs, including the logs for this site
logs-to-http-uptime-updater
1 x Day
This one doesn't really apply too much to jtliii.mine.nu, but is a small part of the above script logs-to-http.  I like to show my machines uptime status in my logs.  Since logs-to-http is run every hour, this was to many uptime entries.  This script adds the current uptime once per day to the logs-to-http log.
logs-to-http-log-recycler
1 x Month
Again, this one also doesn't really apply too much to jtliii.mine.nu, but is a small part of the above script logs-to-http.  This script moves the logs-to-http log to *.old
B-o-B is, and always has been, a loyal Command & Conquer Good Guy
   



Visitors since 23 February 2004

last updated: 26 Feb 2004
E-Mail B-o-B