[IRCServices] Tcl & IRC Bots for Backup

Sinan Kuşdoğan kusdogan at boun.edu.tr
Mon Jan 22 18:52:18 PST 2001


Hi everyone,

Because of my interest in tcl and bots i thought of a TCL backup system that
consists of  two services running on different machines with separate DB's
and two IRCbots (or only TCL codes).

Let's call the first bot as MasterBot and the other as SlaveBot.

MasterBot runs only for 1 or 2 minutes after the main service starts and
SlaveBot runs always.

Assume SlaveBot backups database to slave services' DBs on every 5 minutes
when it finds OperServ1 (you can check this nickname or another specific
signal for main services) running safely. When the check fails it uses its
privileges and connects the secondary services with the server immediately
and it may store the time of the server.

When main services come back it first runs MasterBot to check the case. If
the time that the secondary service ran is long enough it quits the
connection and loads secondary DB to the master one and connects the main
services.

What is the advantage of this? You can run two separate services on
different machines (should be on the same network, low connection speed may
result with some data problems).  You lost at max the SlaveBot's check time
period.  Cronjob and running two services on the same machine fails if that
machine fails :)
This is only another view. It may be improved. That's all from me at
midnight :)))

Sinan "abbas" Kusdogan