]> jfr.im git - irc.git/blob - software/!RELEASES/ircservices/achurch.org/services/lists/ircservices/2001/002521.html
RELEASE -> !RELEASE
[irc.git] / software / !RELEASES / ircservices / achurch.org / services / lists / ircservices / 2001 / 002521.html
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
2 <HTML>
3 <HEAD>
4 <TITLE> AW: [IRCServices] Backup databases?
5 </TITLE>
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">
12 </HEAD>
13 <BODY BGCOLOR="#ffffff">
14 <H1>AW: [IRCServices] Backup databases?</H1>
15 <B>Chris Knipe</B>
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
18 </A><BR>
19 <I>Wed Nov 14 07:51:02 PST 2001</I>
20 <P><UL>
21 <LI>Previous message: <A HREF="002507.html">AW: [IRCServices] Backup databases?
22 </A></li>
23 <LI>Next message: <A HREF="002508.html">AW: [IRCServices] Backup databases?
24 </A></li>
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>
30 </LI>
31 </UL>
32 <HR>
33 <!--beginarticle-->
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
37 rise...
38
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
41 DB.
42
43 On Tue, 13 Nov 2001, Strider wrote:
44
45 &gt;<i>Aren't there shell scripts and etc already available to do this sort of
46 </I>&gt;<i>thing? Not specifically for services...but for anything you want.
47 </I>&gt;<i>
48 </I>&gt;<i>www.freshmeat.net is a great place to look if there is a program to do this.
49 </I>&gt;<i>
50 </I>&gt;<i>-------Original Message-------
51 </I>&gt;<i>
52 </I>&gt;<i>From: <A HREF="http://www.ircservices.za.net/mailman/listinfo/ircservices">ircservices at ircservices.za.net</A>
53 </I>&gt;<i>Date: Tuesday, November 13, 2001 01:36:29 PM
54 </I>&gt;<i>To: <A HREF="http://www.ircservices.za.net/mailman/listinfo/ircservices">ircservices at ircservices.za.net</A>
55 </I>&gt;<i>Subject: AW: [IRCServices] Backup databases?
56 </I>&gt;<i>
57 </I>&gt;<i>Hi,
58 </I>&gt;<i>
59 </I>&gt;<i>I don't think this is a services issue. Maybe you should simply write a
60 </I>&gt;<i>little crontab who does exactly what you just described. You don't need any
61 </I>&gt;<i>support from services' side for this.
62 </I>&gt;<i>
63 </I>&gt;<i>Georges
64 </I>&gt;<i>
65 </I>&gt;<i>-----Urspr&#252;ngliche Nachricht-----
66 </I>&gt;<i>Von: <A HREF="http://www.ircservices.za.net/mailman/listinfo/ircservices">ircservices-admin at ircservices.za.net</A>
67 </I>&gt;<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>&gt;<i>Gesendet: Dienstag, 13. November 2001 20:28
69 </I>&gt;<i>An: <A HREF="http://www.ircservices.za.net/mailman/listinfo/ircservices">ircservices at ircservices.za.net</A>
70 </I>&gt;<i>Betreff: [IRCServices] Backup databases?
71 </I>&gt;<i>
72 </I>&gt;<i>
73 </I>&gt;<i>would it be possible in an upcoming version of services to have an automatic
74 </I>&gt;<i>back up system?
75 </I>&gt;<i>i recently had my providers HDD going bust after a power failure, lost all
76 </I>&gt;<i>databases (and IRC shite at that)
77 </I>&gt;<i>just something that can be scheduled every 2hrs lets say, that uploads a tar
78 </I>&gt;<i>gzipped copy of the databases to another FTP so if something *DOES* happen
79 </I>&gt;<i>and all data is lost, there is a backup :)
80 </I>&gt;<i>
81 </I>&gt;<i>--
82 </I>&gt;<i>Craig McLure
83 </I>&gt;<i><A HREF="http://www.ircservices.za.net/mailman/listinfo/ircservices">Craig at e-tidalwave.org</A>
84 </I>&gt;<i>WaveAdmin on the e-tidalwave IRC Network
85 </I>&gt;<i>Ride the Wave! www.e-tidalwave.org
86 </I>&gt;<i>
87 </I>&gt;<i>
88 </I>&gt;<i>_________________________________________________________________
89 </I>&gt;<i>Get your FREE download of MSN Explorer at <A HREF="http://explorer.msn.com/intl.asp">http://explorer.msn.com/intl.asp</A>
90 </I>&gt;<i>
91 </I>&gt;<i>-----------------------------------------------------------
92 </I>&gt;<i>To unsubscribe, mail <A HREF="http://www.ircservices.za.net/mailman/listinfo/ircservices">ircservices-request at ircservices.za.net</A>
93 </I>&gt;<i>with the word UNSUBSCRIBE in the subject of the mail.
94 </I>&gt;<i><A HREF="http://www.ircservices.za.net/mailman/listinfo/ircservices">http://www.ircservices.za.net/mailman/listinfo/ircservices</A>
95 </I>&gt;<i>
96 </I>&gt;<i>-----------------------------------------------------------
97 </I>&gt;<i>To unsubscribe, mail <A HREF="http://www.ircservices.za.net/mailman/listinfo/ircservices">ircservices-request at ircservices.za.net</A>
98 </I>&gt;<i>with the word UNSUBSCRIBE in the subject of the mail.
99 </I>&gt;<i><A HREF="http://www.ircservices.za.net/mailman/listinfo/ircservices">http://www.ircservices.za.net/mailman/listinfo/ircservices</A>
100 </I>&gt;<i>
101 </I>&gt;<i>.
102 </I>
103 --
104
105 Regards,
106 Chris Knipe
107 (083) 430-8151
108
109
110 -------------- next part --------------
111 #!/bin/sh
112
113 # Setup date for the reports
114 DATE=`date +%Y-%m-%d`
115
116 # Generate Daily Tarbal
117 # Generate Daily Tarbal
118 mkdir /home/savage/ircd/data/tmp
119 cd /home/savage/ircd/data/tmp
120 cp ../*.db .
121 cp ../services.log .
122 tar czf $DATE.tgz *
123 mv $DATE.tgz ../
124 rm -rf /home/savage/ircd/data/tmp
125
126 -------------- next part --------------
127 #!/bin/sh
128 SERVBIN=services
129 SERVPIDFILE=data/services.pid
130 SERVPATH=/home/savage/ircd
131
132 cd $SERVPATH
133 if test -r $SERVPATH/$SERVPIDFILE; then
134 SERVPID=$(cat $SERVPATH/$SERVPIDFILE)
135 if $(kill -CHLD $SERVPID &gt;/dev/null 2&gt;&amp;1)
136 then
137 # lucky for us SERV is still up
138 exit 0
139 fi
140 echo &quot;&quot;
141 echo &quot;stale pid file (erasing it)&quot;
142 rm -f $SERVPATH/$SERVPIDFILE
143 fi
144 echo &quot;&quot;
145 echo &quot;Services is dead........restarting Services&quot;
146 echo &quot;&quot;
147 if test -x $SERVBIN ;then
148 $SERVPATH/$SERVBIN
149 exit 0
150 fi
151 echo &quot;could not reload&quot;
152
153 </PRE>
154
155 <!--endarticle-->
156 <HR>
157 <P><UL>
158 <!--threads-->
159 <LI>Previous message: <A HREF="002507.html">AW: [IRCServices] Backup databases?
160 </A></li>
161 <LI>Next message: <A HREF="002508.html">AW: [IRCServices] Backup databases?
162 </A></li>
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>
168 </LI>
169 </UL>
170
171 </body></html>