I've got 2 individual digs that I'd like to merge into one for searches.  It
is my plan to dig a piece of my domain at a time each night and then merge
the results into one search database.

Below is the script that I'm using to do the merge.  Is this correct with
the file copies and moves?  I suspect not because there are things I can
find searching using server1.conf that I can't find using allpubsvrs.conf


#!/bin/bash

TMPDIR=/usr/local/tmp
export TMPDIR

cd /usr/local/htdig-3.1.6

echo Merging server1 info...
./bin/htmerge -s -a -m ./conf/server1.conf -c ./conf/allpubsvrs.conf
cp ./db/allpubsvrs/db.docdb.work ./db/allpubsvrs/db.docdb
mv ./db/allpubsvrs/db.docs.index.work ./db/allpubsvrs/db.docs.index
mv ./db/allpubsvrs/db.words.db.work ./db/allpubsvrs/db.words.db

echo Merging server2 info...
./bin/htmerge -s -a -m ./conf/server2.conf -c ./conf/allpubsvrs.conf
cp ./db/allpubsvrs/db.docdb.work ./db/allpubsvrs/db.docdb
mv ./db/allpubsvrs/db.docs.index.work ./db/allpubsvrs/db.docs.index
mv ./db/allpubsvrs/db.words.db.work ./db/allpubsvrs/db.words.db


Thanks.

---
Edward Chase
Providence College
Information Technology 

You are running anti-virus software on your computer...  right?  And you are
keeping it up-to-date...  right?



-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click
_______________________________________________
ht://Dig general mailing list: <[EMAIL PROTECTED]>
ht://Dig FAQ: http://htdig.sourceforge.net/FAQ.html
List information (subscribe/unsubscribe, etc.)
https://lists.sourceforge.net/lists/listinfo/htdig-general

Reply via email to