Article View: news.software.nntp
Article #66646Re: INN Server Migration
From: Russ Allbery
Date: Wed, 10 Sep 2003 17:38
Date: Wed, 10 Sep 2003 17:38
56 lines
3555 bytes
3555 bytes
Steve <steve@nospam-goofer.co.uk> writes:
> I need to move an active inn-2.4.0 to another server, hopefully in a
> manner that will be transparent to the users of it.
> The new box has a fresh installation of inn-2.4.0 on it, but absoutely
> nothing configured and no db's initialized. Is there a proceedure I
> should follow to accomplish this?
URL: <http://www.eyrie.org/~eagle/faqs/inn.html#S6.4>
Subject: 6.4. Feed all articles on a server to another server
To feed all articles on an existing server to another one, regardless of
how they're stored on the server, first tell the new server to accept
articles regardless of how old they are (otherwise, INN will reject
articles older than artcutoff in inn.conf):
ctlinnd param c 0
You may also want to set xrefslave to true in inn.conf and then restart
INN on the new server if you want to keep the same article numbers as you
had on the old server.
Next, make sure that the old server is listed in incoming.conf of the new
server, and reload incoming.conf with ctlinnd to pick up that change.
Then try these commands (a variation on commands posted by Katsuhiro
Kondou to inn-workers) on the old server:
cd pathdb
perl -ne 'chomp; ($a,$b,$_) = split " "; print "$_\n" if $_' history \
| tr . / > pathoutgoing/list
innxmit server list
where pathdb is the path to the directory containing the history file
(usually ~news/db), pathoutgoing is the path to the outgoing spool
directory (usually ~news/spool/outgoing), and server is the name of the
new news server to which you're feeding the articles.
When done, set xrefslave to false in inn.conf again if you changed it and
then either restart INN on the new server (necessary if you changed
xrefslave) or use another ctlinnd param command to set the cutoff value
back to what's specified in inn.conf.
Please note that this method requires that all of the articles in your
spool have Xref headers. Current versions of INN will always add an Xref
header, but very old versions (earlier 1.x versions) will only add an Xref
header to crossposted articles. If you're trying to import such a spool,
you'll need to modify all of those articles to add an Xref header.
--
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.
Technical Details
Message-ID:
<8765k0k0ho.fsf@windlord.stanford.edu>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20140818.mbox.gz!text1.nnrp.aus1!firehose2!nntp4!intern1.nntp.aus1.giganews.com!border3.nntp.aus1.giganews.com!small1.nntp.aus1.giganews.com!nntp.giganews.com!newshub.sdsu.edu!headwall.stanford.edu!newsfeed.stanford.edu!shelby.stanford.edu!not-for-mailReferences:
<bjmvps$2fl$1@bananasplit.info>Show Full Headers
Complete Article Headers
Message-ID: <8765k0k0ho.fsf@windlord.stanford.edu> Subject: Re: INN Server Migration Date: Wed, 10 Sep 2003 10:38:11 -0700 From: Russ Allbery <rra@stanford.edu> References: <bjmvps$2fl$1@bananasplit.info> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20140818.mbox.gz!text1.nnrp.aus1!firehose2!nntp4!intern1.nntp.aus1.giganews.com!border3.nntp.aus1.giganews.com!small1.nntp.aus1.giganews.com!nntp.giganews.com!newshub.sdsu.edu!headwall.stanford.edu!newsfeed.stanford.edu!shelby.stanford.edu!not-for-mail Newsgroups: news.software.nntp Organization: The Eyrie Lines: 56 NNTP-Posting-Host: windlord.stanford.edu Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: news.Stanford.EDU 1063215492 13157 171.64.19.147 (10 Sep 2003 X-Complaints-To: news@news.stanford.edu User-Agent: Gnus/5.1002 (Gnus v5.10.2) XEmacs/21.4 (Common Lisp, linux) Cancel-Lock: sha1:nDMjwUDtumkxJPivZI3xP8pTS/c=