Thread View: news.software.nntp
6 messages
6 total messages
Started by Steven Woody
Fri, 16 May 2003 02:07
how to backup articles in local groups ?
Author: Steven Woody
Date: Fri, 16 May 2003 02:07
Date: Fri, 16 May 2003 02:07
15 lines
1418 bytes
1418 bytes
Hi, I searched google but found no answer :( We are currently running innd for a couple of local groups. we now want to do a everyday backup but dont know how to. And, after a disaster, how do I restory data from backup? Your comments are appreciated. -- %% (fortunes) Q: How did you get into artificial intelligence? A: Seemed logical -- I didn't have any real intelligence.
Re: how to backup articles in local groups ?
Author: Jeffrey M. Vinocur
Date: Fri, 16 May 2003 03:15
Date: Fri, 16 May 2003 03:15
49 lines
3192 bytes
3192 bytes
In article <841xyz1w5y.fsf@zsw.com>, Steven Woody <steven@steven4u.net> wrote: > >I searched google but found no answer :( We are currently running innd >for a couple of local groups. we now want to do a everyday backup but >dont know how to. And, after a disaster, how do I restory data from >backup? Of course, make sure you have a copy of all the configuration files. Definitely keep a static copy of $pathdb/active so you know what groups you were carrying; ideally you might want to back that up as well (see below). As for the stuff that changes daily, you've got a couple options: - You can just backup the articles themselves. If you're using tradspool, and reasonably intelligent backup tools, you may be able to get away with backing up $pathspool/articles; otherwise (and this method is wiser regardless) you can use $pathbin/archive to write the articles, one per file, to anywhere you choose, and then back them up from there. Either way, a restore would involve using makehistory to rebuild the history and overview databases (ie, some fiddling). - An alternative way to achieve the same thing is to set up a separate server (potentially using xrefslave) that would be able to come up as a replacement immediately. Just disable xrefslave and go. - Or, you can try to backup everything (ie, the articles, the overview database, and the history files). This would make a restore extremly easy. However, you absolutely must not try to do this while news is flowing, or your restore might have inconsistencies. Depending on how fast your backup process is and how much downtime you can allow, you may be able to have a script `ctlinnd throttle`, do your backup (or alternatively, take a quick snapshot of everything in a consistent state for backing up a few minutes later), and then `ctlinnd go`. A variation on this approach is to use the "/full/path" parameter to news.daily (being run nightly from cron anyway) so that news.daily takes care of the throttle/go and locking properly, and then spawns whatever script you like. All the programs I mention have manpages... -- Jeffrey M. Vinocur jeff@litech.org
Re: how to backup articles in local groups ?
Author: Russ Allbery
Date: Fri, 16 May 2003 04:14
Date: Fri, 16 May 2003 04:14
25 lines
2194 bytes
2194 bytes
Jeffrey M Vinocur <jeff@litech.org> writes:
> As for the stuff that changes daily, you've got a couple options:
> - You can just backup the articles themselves. If you're using
> tradspool, and reasonably intelligent backup tools, you may be
> able to get away with backing up $pathspool/articles; otherwise
> (and this method is wiser regardless) you can use
> $pathbin/archive to write the articles, one per file, to
> anywhere you choose, and then back them up from there. Either
> way, a restore would involve using makehistory to rebuild the
> history and overview databases (ie, some fiddling).
I'd just back up the articles themselves; that's what I do. If you have
to restore the whole spool, you have to use makehistory; if you just need
to restore some articles (such as from data corruption or some sort of
mistaken rmgroup), use INN 2.4.0 and tdx-util -R to selectively rebuild
overview for particular groups.
--
Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>
Please post questions rather than mailing me directly.
<http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: how to backup articles in local groups ?
Author: Steven Woody
Date: Fri, 16 May 2003 08:21
Date: Fri, 16 May 2003 08:21
58 lines
3665 bytes
3665 bytes
jeff@litech.org (Jeffrey M. Vinocur) writes: Thanks! > In article <841xyz1w5y.fsf@zsw.com>, Steven Woody <steven@steven4u.net> wrote: >> >>I searched google but found no answer :( We are currently running innd >>for a couple of local groups. we now want to do a everyday backup but >>dont know how to. And, after a disaster, how do I restory data from >>backup? > > Of course, make sure you have a copy of all the configuration > files. Definitely keep a static copy of $pathdb/active so you > know what groups you were carrying; ideally you might want to > back that up as well (see below). > > As for the stuff that changes daily, you've got a couple options: > > - You can just backup the articles themselves. If you're using > tradspool, and reasonably intelligent backup tools, you may be > able to get away with backing up $pathspool/articles; otherwise > (and this method is wiser regardless) you can use > $pathbin/archive to write the articles, one per file, to > anywhere you choose, and then back them up from there. Either > way, a restore would involve using makehistory to rebuild the > history and overview databases (ie, some fiddling). > > - An alternative way to achieve the same thing is to set up a > separate server (potentially using xrefslave) that would be > able to come up as a replacement immediately. Just disable > xrefslave and go. > > - Or, you can try to backup everything (ie, the articles, the > overview database, and the history files). This would make a > restore extremly easy. However, you absolutely must not try to > do this while news is flowing, or your restore might have > inconsistencies. Depending on how fast your backup process is > and how much downtime you can allow, you may be able to have a > script `ctlinnd throttle`, do your backup (or alternatively, > take a quick snapshot of everything in a consistent state for > backing up a few minutes later), and then `ctlinnd go`. A > variation on this approach is to use the "/full/path" parameter > to news.daily (being run nightly from cron anyway) so that > news.daily takes care of the throttle/go and locking properly, > and then spawns whatever script you like. > > All the programs I mention have manpages... > > > -- > Jeffrey M. Vinocur > jeff@litech.org -- %% (fortunes) Q: How did you get into artificial intelligence? A: Seemed logical -- I didn't have any real intelligence.
Re: how to backup articles in local groups ?
Author: Michael Grimm
Date: Fri, 16 May 2003 20:04
Date: Fri, 16 May 2003 20:04
32 lines
2465 bytes
2465 bytes
Steven Woody wrote: > And, after a disaster, how do I restory data from backup? Since I dumped my INN 1.7.2 in favour of a 2.3.3 I had had to recover from some crashes leaving the overview database and/or spool corrupt. And, because I did also move to CNFS, I found me finally writing a little Perl script (as a spin-off of a statistic script [1]) that will dump all articles of a given newsgroup into rnews batches. After a crash I only do have to re-initialise the CNFS, and reset the overview, history, and active. All my favourite newsgroups are then feeded into that brand new server using rnews (disable the batcher before you do that). At the beginning that script is darn slow, but then you only need to run it on e ragular basis (cron). A newsgroup with approx. 150,000 articles will be stored in roughly two hours on a rather outdated PC, just to give you an estimate. Feel free to use it [2], but do not blame me if your mileage varies ;-) Michael [1] http://www.odo.in-berlin.de/stat4news/stat4news.html [2] http://www.odo.in-berlin.de/news2batches/news2batches.html -- "Das Usenet ist so ein wunderbares, aber zerbrechliches Medium und so viele treten es so in den Dreck und machen es unbenutzbar, sei es durch Absicht oder Gedankenlosigkeit, was vom Ergebnis das gleiche ist." [Bettina Fink in dnq]
Re: how to backup articles in local groups ?
Author: nukleus
Date: Fri, 16 May 2003 22:09
Date: Fri, 16 May 2003 22:09
46 lines
2864 bytes
2864 bytes
In article <yl65obr0j4.fsf@windlord.stanford.edu>, Russ Allbery <rra@stanford.edu> wrote: >Jeffrey M Vinocur <jeff@litech.org> writes: > >> As for the stuff that changes daily, you've got a couple options: > >> - You can just backup the articles themselves. If you're using >> tradspool, and reasonably intelligent backup tools, you may be >> able to get away with backing up $pathspool/articles; otherwise >> (and this method is wiser regardless) you can use >> $pathbin/archive to write the articles, one per file, to >> anywhere you choose, and then back them up from there. Either >> way, a restore would involve using makehistory to rebuild the >> history and overview databases (ie, some fiddling). > >I'd just back up the articles themselves; that's what I do. Yup, yup. Newsgroups: news.groups From: bt@templetons.com (Brad Templeton) Subject: Re: USENET - it is over References: <3A9353AB.4320847F@worldnet.att.net> <3C195139.EF45100@sfo.com> <9vbl5t$4i3$1@panix3.panix.com> <9vejea$spf$1@slb6.atl.mindspring.net> Organization: http://www.templetons.com/brad Originator: brad@news.netfunny.com (Brad Templeton) Message-ID: <wc7T7.10286$Kg2.1212411@rwcrnsc51> NNTP-Posting-Date: Sun, 16 Dec 2001 20:10:04 GMT Date: Sun, 16 Dec 2001 20:10:04 GMT ------------------------ Quote Begin -------------------- [...] As is the voting, which was just a fraud to make people shut up once they lost a vote. (In those days, the debates would get long and the person pushing for a group nobody else wanted would never go away and admit defeat. Voting with the silly '100 more' rule was not to create democracy, but to end the debate.) -- Would you expect a product called "Windows" to give you privacy and security? http://www.templetons.com/brad/ ----------------------- End of Quote --------------------
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads