Article View: news.software.nntp
Article #65316Re: how to backup articles in local groups ?
From: 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.
Technical Details
Message-ID:
<84r86zb8u6.fsf@zsw.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!newsfeed.media.kyoto-u.ac.jp!news.cn99.com!not-for-mailReferences:
<841xyz1w5y.fsf@zsw.com> <ba1l3t$iae$1@puck.litech.org>Show Full Headers
Complete Article Headers
Message-ID: <84r86zb8u6.fsf@zsw.com> Subject: Re: how to backup articles in local groups ? Date: Fri, 16 May 2003 16:21:21 +0800 From: Steven Woody <steven@steven4u.net> References: <841xyz1w5y.fsf@zsw.com> <ba1l3t$iae$1@puck.litech.org> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!newsfeed.media.kyoto-u.ac.jp!news.cn99.com!not-for-mail Newsgroups: news.software.nntp Organization: Bentium Ltd. (CN99) Lines: 57 NNTP-Posting-Host: 61.142.80.115 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: mail.cn99.com 1053073281 96759 61.142.80.115 (16 May 2003 08:21:21 GMT) X-Complaints-To: usenet@news.cn99.com NNTP-Posting-Date: Fri, 16 May 2003 08:21:21 +0000 (UTC) User-Agent: Gnus/5.090016 (Oort Gnus v0.16) Emacs/21.2 (gnu/linux) Cancel-Lock: sha1:bckX0TowvNG4VbxW0bt4bCGGVXk=