Thread View: news.software.nntp
6 messages
6 total messages
Started by Mike
Wed, 06 Oct 1999 00:00
Best way to copy existing news from on server to another
Author: Mike
Date: Wed, 06 Oct 1999 00:00
Date: Wed, 06 Oct 1999 00:00
9 lines
1095 bytes
1095 bytes
What is the best way to copy existing news from one server to a server just implemented while retaining the original post dates? There are about a half dozen local groups on an existing news server that I would like to recreate with their exact contents on a new server while retaining their original post dates (these groups are timehash groups).
Re: Best way to copy existing news from on server to another
Author: Russ Allbery
Date: Wed, 06 Oct 1999 00:00
Date: Wed, 06 Oct 1999 00:00
12 lines
1008 bytes
1008 bytes
greg andruk <meowing@banet.net> writes: > What software (versions matter) are the old and new servers running? It > could be as simple as copying a few files around or complicated as > hacking up a bogofeeder to make the headers "fit." He said the groups were timehash, so I assume he's running INN. -- Russ Allbery (rra@stanford.edu) <URL:http://www.eyrie.org/~eagle/>
Re: Best way to copy existing news from on server to another
Author: greg andruk
Date: Wed, 06 Oct 1999 00:00
Date: Wed, 06 Oct 1999 00:00
9 lines
1019 bytes
1019 bytes
Russ Allbery <rra@stanford.edu> wrote: > He said the groups were timehash, so I assume he's running INN. That's why the version stuff matters. If timehash being used on both copies of INN, you can cheat a bit by copying files around and treating it as an in-place upgrade.
Re: Best way to copy existing news from on server to another
Author: Russ Allbery
Date: Wed, 06 Oct 1999 00:00
Date: Wed, 06 Oct 1999 00:00
31 lines
2107 bytes
2107 bytes
Mike <joe@microsoft.com> writes: > What is the best way to copy existing news from one server to a server > just implemented while retaining the original post dates? > There are about a half dozen local groups on an existing news server > that I would like to recreate with their exact contents on a new server > while retaining their original post dates (these groups are timehash > groups). Configure your new server to accept articles as old as the oldest article on your old server, generate a list of all the articles (storage tokens, actually) on your old server from the history file (I seem to recall there's a tool with INN that does this, although it's also easy enough to do by hand with awk), and then run innxmit on that list of articles to send it to your new server. This may not do quite what you want depending on what you mean by retaining the original post dates, though, as I believe for the purposes of expire those articles will all be considered to have arrived the day you did the innxmit. One possible workaround for that would be to stop the news server after you do this and then edit the history file to make the arrival time of each article match the posting time. The dates are the second field of the history file and are tilde-separated; the first date is the arrival time and the third date is the posting time, so you'd want to make the first date match the third date. -- Russ Allbery (rra@stanford.edu) <URL:http://www.eyrie.org/~eagle/>
Re: Best way to copy existing news from on server to another
Author: greg andruk
Date: Wed, 06 Oct 1999 00:00
Date: Wed, 06 Oct 1999 00:00
10 lines
1035 bytes
1035 bytes
Mike <joe@microsoft.com> wrote: > What is the best way to copy existing news from one server to a server just > implemented while retaining the original post dates? What software (versions matter) are the old and new servers running? It could be as simple as copying a few files around or complicated as hacking up a bogofeeder to make the headers "fit."
Re: Best way to copy existing news from on server to another
Author: bill davidsen
Date: Thu, 07 Oct 1999 00:00
Date: Thu, 07 Oct 1999 00:00
46 lines
2959 bytes
2959 bytes
In article <01bf1029$1e9a5e80$e712c4a5@ahmicron.do.losiros.cc.ca.us>, Mike <joe@microsoft.com> wrote: | What is the best way to copy existing news from one server to a server just | implemented while retaining the original post dates? | | There are about a half dozen local groups on an existing news server that I | would like to recreate with their exact contents on a new server while | retaining their original post dates (these groups are timehash groups). Start innd on the new machine using -c to accept old articles. Then on the old server, for each group you want to copy, generate a list of the Message-Id's in the group, feed it through grephistory to get input suitable for innxmit, then send it to the new server. Example, should work on any version of news: # get the id's, repeat for each group getover localhost local.news.group | cut -f5 >> mid.list # eliminate dups, generate innxmit input sort -u mid.list | grephistory -s > xmit.inp # send this to the new server innxmit -a -v my.new.server $PWD/xmit.inp By using the sendme option of grephistory to generate the innxmit input file you ensure that it will work on both old and new news. Same deal for using the overview data rather than counting on reading the article itself or getting the MID from the history file where it no longer lives for some storage methods. Also note that you can do this all on the new server if you wish, just run getover against the old server instead of localhost, and feed the list of message-id's into nntpget. That used to avoid the use of the NEWNEWS command, so should work on any server for which you have read acccess. A version of getover is in the newstools2 collection, which I dropped on my distribution page, <http://pages.prodigy.net/billd>. Note that new versions of all tools in that collection are in beta, what's there works but isn't all that full featured. -- bill davidsen <davidsen@tmr.com> CTO, TMR Associates, Inc When taking small children to a carnival, always have them go potty *before* you let them go on the rides, and let them eat all the junk food and candy *after*.
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