🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #65315

Re: how to backup articles in local groups ?

#65315
From: Jeffrey M. Vinocur
Date: Fri, 16 May 2003 03:15
49 lines
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
Technical Details
Message-ID: <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.ems.psu.edu!news.litech.org!not-for-mail
References: <841xyz1w5y.fsf@zsw.com>

Show Full Headers
Complete Article Headers
Message-ID: <ba1l3t$iae$1@puck.litech.org>
Subject: Re: how to backup articles in local groups ?
Date: Fri, 16 May 2003 03:15:09 +0000
From: jeff@litech.org (Jeffrey M. Vinocur)
References: <841xyz1w5y.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.ems.psu.edu!news.litech.org!not-for-mail
Newsgroups: news.software.nntp
Organization: Litech Systems Design
Lines: 48
Sender: jeff@litech.org
NNTP-Posting-Host: puck.litech.org
X-Trace: puck.litech.org 1053054909 18766 66.218.0.75 (16 May 2003 03:15:09 GMT)
X-Complaints-To: usenet@litech.org
NNTP-Posting-Date: Fri, 16 May 2003 03:15:09 +0000 (UTC)
X-Newsreader: trn 4.0-test76 (Apr 2, 2001)
Originator: jeff@litech.org (Jeffrey M. Vinocur)