Debian Codegraph @

contrib/multidig/README

raw ◀ ▶
Source reconstructed at patch state 0 of 1 — not the installed (fully patched) source.
1 Debian patch touch this file
1 README for multidig 1.1
2 by Geoff Hutchison <[email protected]>
3
4 Copyright (c) 1998-1999 The ht://Dig Group <http://www.htdig.org/>
5 Distributed under the terms of the GNU General Public License (GPL)
6 version 2 or later.
7 --------------------------------
8
9 This document is part of the "multidig script system" a system of
10 shell scripts and some modified conf files that makes dealing with
11 multiple databases easier for ht://Dig. It assumes that you know what
12 ht://Dig is. If you don't know, see the website at
13 <http://www.htdig.org/>
14
15 This README is a bit rough around the edges. I don't know what people
16 really want or need to know about the scripts. I expect a lot of
17 questions. Hey, maybe I'm wrong. I'm always open to suggestions,
18 criticisms, corrections, etc. E-mail me at <[email protected]>
19
20 --------------------------------
21
22 INTRODUCTION:
23
24 * Why write multidig?
25
26 There are many reasons I started the multidig system. The biggest
27 were the complaints that ht://Dig didn't have much of an
28 administration interface. If you're looking for one, multidig isn't
29 it. Yet. The next biggest is that people wanted me to make dealing
30 with multiple databases easier. If you're looking for this, you're in
31 the right place.
32
33 * Why should I bother with multidig?
34
35 If you already have a multiple-database setup and it's working
36 smoothly, you probably don't want to bother. It was written the way
37 *I* would organize a multiple-database setup. Not suprisingly, it
38 might be more pain to convert to multidig than it's worth.
39 If you're planning a multiple-database setup or you have one and
40 it's not working well, this will help. It hides most of the pain and
41 suffering behind some shell scripts and generally automates life. :-)
42
43 --------------------------------
44
45 SETTING UP:
46
47 * How do I install it?
48
49 It's pretty easy to install. It requires bash, or at least a
50 Bourne-shell that supports the "source" builtin. Obviously, it also
51 requires ht://Dig. :-)
52 Change any paths in the Makefile. D a "make install" to install the
53 scripts in the right place and the config files in the right
54 place. The Makefile edits the scripts for you so the paths are consistent.
55
56 * Now that it's in, how does it work?
57
58 The multidig script will replace the rundig script that comes with
59 ht://Dig. Use it through a cron job or some other means of automating
60 updates. It will run through all the db that multidig knows about, run
61 htdig, htmerge, move the databases around, etc. As written it tries to
62 index with the least disk space in the least time. Thus it keeps only
63 the minimum files and does "update" digs.
64 After indexing all the db, it merges all the collections, trying to
65 do the same thing, fastest speed, smallest disk and RAM
66 requirements. It spits out a short status to STDOUT and a more
67 complete report to the file referened with the $REPORT option in
68 multidig.conf. Adding a "-v" to the command-line makes everything more
69 verbose.
70
71 * Can I convert my previous multiple-db setup?
72
73 Yes. I'm assuming you have a config file for each database you've
74 set up. In that case, put the databases into a directory with the same
75 name as the .conf file and tack the name onto the db.list file in your
76 config directory. This is multidig's list of all databases, so adding
77 a line here will ensure it's indexed using multidig.
78
79 * How do I add new URLs to databases or add new databases?
80
81 1) New URLs: Run 'add-urls <db>' and either paste in URLs or
82 redirect a file or program.
83 2) New DB: Run 'new-db <db>' to set up everything for that database.
84
85 --------------------------------
86
87 COLLECTIONS:
88
89 * What's a collection?
90
91 Version 3.1.0 of ht://Dig added support for merging multiple
92 databases together. Technically, you merge one database into
93 another. Multidig makes this a bit easier. You set up a "collection"
94 of other databases and the multidig script will merge them all
95 together.
96
97 * Fantastic! How do I define a collection?
98
99 ./new-collect <name>
100 ./add-collect <name>
101 <insert dbs here>
102
103 The add-collect script will go through the list of dbs and make sure
104 the multidig system actually knows about them. If not, it complains.
105
106 * Can I just generate the collections from my databases?
107
108 Yup, run gen-collect. This is what the main multidig script runs.
109
110 --------------------------------
111
112 DIRECTORY LAYOUT:
113
114 Here are the locations of files used by multidig:
115
116 $BASEDIR/bin
117 add-collect script for adding db to a collection
118 add-urls script for adding URLs to a db
119 gen-collect script for generating all collections
120 from their db (called by multidig)
121 multidig script for generating all db and collections
122 new-collect script for making a new collection
123 new-db script for making a new db
124 $BASEDIR/conf
125 db.conf template database config
126 used by new-collect and new-db
127 foo.conf database config for db foo
128 multidig.conf config for multidig paths and options
129 db.list list of all db, one per line
130 collect.list list of all collections, one per line
131 $BASEDIR/db
132 foo/foo.urls URLs used by foo db
133 foo/db.* actual foo databases