1 <!DOCTYPE HTML PUBLIC
"-//W3C//DTD HTML 3.2//EN">
4 <TITLE> AW: [IRCServices] Backup databases?
6 <LINK REL=
"Index" HREF=
"index.html" >
7 <LINK REL=
"made" HREF=
"mailto:ircservices%40ircservices.za.net?Subject=AW%3A%20%5BIRCServices%5D%20Backup%20databases%3F&In-Reply-To=3BF17755.000008.01260%40strider.gimpy.2y.net">
8 <META NAME=
"robots" CONTENT=
"index,nofollow">
9 <META http-equiv=
"Content-Type" content=
"text/html; charset=us-ascii">
10 <LINK REL=
"Previous" HREF=
"002507.html">
11 <LINK REL=
"Next" HREF=
"002508.html">
13 <BODY BGCOLOR=
"#ffffff">
14 <H1>AW: [IRCServices] Backup databases?
</H1>
16 <A HREF=
"mailto:ircservices%40ircservices.za.net?Subject=AW%3A%20%5BIRCServices%5D%20Backup%20databases%3F&In-Reply-To=3BF17755.000008.01260%40strider.gimpy.2y.net"
17 TITLE=
"AW: [IRCServices] Backup databases?">savage at savage.za.org
19 <I>Wed Nov
14 07:
51:
02 PST
2001</I>
21 <LI>Previous message:
<A HREF=
"002507.html">AW: [IRCServices] Backup databases?
23 <LI>Next message:
<A HREF=
"002508.html">AW: [IRCServices] Backup databases?
25 <LI> <B>Messages sorted by:
</B>
26 <a href=
"date.html#2521">[ date ]
</a>
27 <a href=
"thread.html#2521">[ thread ]
</a>
28 <a href=
"subject.html#2521">[ subject ]
</a>
29 <a href=
"author.html#2521">[ author ]
</a>
34 <PRE>Isn't it maybe a good time to start some sort of contrib for services?
35 Allot of people has been asking for scripts lately, and when services
36 becomes modular, I can see allot more requests for custom code starting to
39 As such, I'll start this off with both a contrab script to check that
40 services is running, aswell as a small backup script to tgz tha services
43 On Tue,
13 Nov
2001, Strider wrote:
45 ><i>Aren't there shell scripts and etc already available to do this sort of
46 </I>><i>thing? Not specifically for services...but for anything you want.
48 </I>><i>www.freshmeat.net is a great place to look if there is a program to do this.
50 </I>><i>-------Original Message-------
52 </I>><i>From:
<A HREF=
"http://www.ircservices.za.net/mailman/listinfo/ircservices">ircservices at ircservices.za.net
</A>
53 </I>><i>Date: Tuesday, November
13,
2001 01:
36:
29 PM
54 </I>><i>To:
<A HREF=
"http://www.ircservices.za.net/mailman/listinfo/ircservices">ircservices at ircservices.za.net
</A>
55 </I>><i>Subject: AW: [IRCServices] Backup databases?
59 </I>><i>I don't think this is a services issue. Maybe you should simply write a
60 </I>><i>little crontab who does exactly what you just described. You don't need any
61 </I>><i>support from services' side for this.
65 </I>><i>-----Urspr
üngliche Nachricht-----
66 </I>><i>Von:
<A HREF=
"http://www.ircservices.za.net/mailman/listinfo/ircservices">ircservices-admin at ircservices.za.net
</A>
67 </I>><i>[mailto:
<A HREF=
"http://www.ircservices.za.net/mailman/listinfo/ircservices">ircservices-admin at ircservices.za.net
</A>]Im Auftrag von Craig McLure
68 </I>><i>Gesendet: Dienstag,
13. November
2001 20:
28
69 </I>><i>An:
<A HREF=
"http://www.ircservices.za.net/mailman/listinfo/ircservices">ircservices at ircservices.za.net
</A>
70 </I>><i>Betreff: [IRCServices] Backup databases?
73 </I>><i>would it be possible in an upcoming version of services to have an automatic
74 </I>><i>back up system?
75 </I>><i>i recently had my providers HDD going bust after a power failure, lost all
76 </I>><i>databases (and IRC shite at that)
77 </I>><i>just something that can be scheduled every
2hrs lets say, that uploads a tar
78 </I>><i>gzipped copy of the databases to another FTP so if something *DOES* happen
79 </I>><i>and all data is lost, there is a backup :)
82 </I>><i>Craig McLure
83 </I>><i><A HREF=
"http://www.ircservices.za.net/mailman/listinfo/ircservices">Craig at e-tidalwave.org
</A>
84 </I>><i>WaveAdmin on the e-tidalwave IRC Network
85 </I>><i>Ride the Wave! www.e-tidalwave.org
88 </I>><i>_________________________________________________________________
89 </I>><i>Get your FREE download of MSN Explorer at
<A HREF=
"http://explorer.msn.com/intl.asp">http://explorer.msn.com/intl.asp
</A>
91 </I>><i>-----------------------------------------------------------
92 </I>><i>To unsubscribe, mail
<A HREF=
"http://www.ircservices.za.net/mailman/listinfo/ircservices">ircservices-request at ircservices.za.net
</A>
93 </I>><i>with the word UNSUBSCRIBE in the subject of the mail.
94 </I>><i><A HREF=
"http://www.ircservices.za.net/mailman/listinfo/ircservices">http://www.ircservices.za.net/mailman/listinfo/ircservices
</A>
96 </I>><i>-----------------------------------------------------------
97 </I>><i>To unsubscribe, mail
<A HREF=
"http://www.ircservices.za.net/mailman/listinfo/ircservices">ircservices-request at ircservices.za.net
</A>
98 </I>><i>with the word UNSUBSCRIBE in the subject of the mail.
99 </I>><i><A HREF=
"http://www.ircservices.za.net/mailman/listinfo/ircservices">http://www.ircservices.za.net/mailman/listinfo/ircservices
</A>
110 -------------- next part --------------
113 # Setup date for the reports
114 DATE=`date +%Y-%m-%d`
116 # Generate Daily Tarbal
117 # Generate Daily Tarbal
118 mkdir /home/savage/ircd/data/tmp
119 cd /home/savage/ircd/data/tmp
124 rm -rf /home/savage/ircd/data/tmp
126 -------------- next part --------------
129 SERVPIDFILE=data/services.pid
130 SERVPATH=/home/savage/ircd
133 if test -r $SERVPATH/$SERVPIDFILE; then
134 SERVPID=$(cat $SERVPATH/$SERVPIDFILE)
135 if $(kill -CHLD $SERVPID
>/dev/null
2>&1)
137 # lucky for us SERV is still up
141 echo
"stale pid file (erasing it)
"
142 rm -f $SERVPATH/$SERVPIDFILE
145 echo
"Services is dead........restarting Services
"
147 if test -x $SERVBIN ;then
151 echo
"could not reload
"
159 <LI>Previous message:
<A HREF=
"002507.html">AW: [IRCServices] Backup databases?
161 <LI>Next message:
<A HREF=
"002508.html">AW: [IRCServices] Backup databases?
163 <LI> <B>Messages sorted by:
</B>
164 <a href=
"date.html#2521">[ date ]
</a>
165 <a href=
"thread.html#2521">[ thread ]
</a>
166 <a href=
"subject.html#2521">[ subject ]
</a>
167 <a href=
"author.html#2521">[ author ]
</a>