INN commit: branches/2.5/doc (FAQ)

INN Commit rra at isc.org
Sun Sep 21 06:36:55 UTC 2014


    Date: Saturday, September 20, 2014 @ 23:36:55
  Author: iulius
Revision: 9699

FAQ:  add how to feed articles arrived between two dates to another server

Modified:
  branches/2.5/doc/FAQ

-----+
 FAQ |   22 +++++++++++++++++++++-
 1 file changed, 21 insertions(+), 1 deletion(-)

Modified: FAQ
===================================================================
--- FAQ	2014-09-21 06:36:23 UTC (rev 9698)
+++ FAQ	2014-09-21 06:36:55 UTC (rev 9699)
@@ -1109,7 +1109,8 @@
 Kondou to inn-workers) on the old server:
 
     cd <pathdb in inn.conf>
-    perl -ne 'chomp; ($a,$b,$_) = split " "; print "$_\n" if $_' history \
+    perl -ne 'chomp; our ($hash, $timestamps, $_) = split " "; \
+        print "$_\n" if $_' history \
         | tr . / > <pathoutgoing in inn.conf>/list
     innxmit server list
 
@@ -1118,6 +1119,25 @@
 directory (usually ~news/spool/outgoing), and server is the name of the
 new news server to which you're feeding the articles.
 
+In case you wish to only feed articles arrived on the old server
+between two dates, you can adapt the previous commands.  For instance,
+the following commands will feed articles arrived between two given
+timestamps (that can be computed with the convdate utility shipped
+with INN).
+
+    convdate -n '15 Apr 2014 20:42 +0200' '16 Apr 2014 12:37 +0200'   
+
+returns the two corresponding timestamps 1397586540 and 1397644620 that
+can then be used to retrieve a subset of articles to feed:
+
+    cd <pathdb in inn.conf>
+    perl -ne 'chomp; our ($hash, $timestamps, $_) = split " "; \
+        my ($arrived, $expires, $posted) = split("~", $timestamps); \
+        print "$_\n" if $_ and $arrived >= 1397586540 \
+            and $arrived <= 1397644620' history \
+        | tr . / > <pathoutgoing in inn.conf>/list
+    innxmit server list
+
 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



More information about the inn-committers mailing list