Commit graph

15 commits

Author SHA1 Message Date
Yorhel
902048e282 Change database dump format + add import & export scripts
The new format allows for downloading and importing only a part of the
database - useful when only the metadata is required - and doesn't
include the wasteful preformatted HTML cache.

This also ensures that the new import.sql script is actually usable and
in sync with the actual database. The old schema.sql was neither.

(And this simplifies my backup scripts)
2025-10-08 09:40:53 +02:00
Yorhel
9c16eba485 cache-html: Fractional sleep & run after cron 2025-05-26 07:58:20 +02:00
Yorhel
f376f1f137 Large-ish SQL schema revamp/optimizations
Primarily aimed at reducing the size of the old 'man' (now: files)
table, using smaller integers to refer to man contents and text fields,
and storing a shorthash as an integer for quick lookups. This better
normalization also removes the need to keep a separate 'man_index' cache
for the search function.

The old schema wasn't necessarily bad, but I was in the mood for some
optimizations. And a little cleanup.

Prolly introduces a bunch of new bugs, I haven't tested this too well.
2021-12-14 15:08:54 +01:00
Yorhel
b531f71ab0 Index available Alpine Linux repositories 2021-12-11 18:08:46 +01:00
Yorhel
fbd7b71d73 Only update SQL caches on Mondays 2019-05-09 13:11:15 +02:00
Yorhel
035538f156 Add CentOS 2018-01-21 08:13:05 +01:00
Yorhel
bb46087068 Add Fedora 1 - 25 2017-01-21 09:05:34 +01:00
Yorhel
46a6e2ff7c Use Rust indexer for Ubuntu + script cleanup 2016-11-20 15:01:22 +01:00
Yorhel
2ee2f7495b Reorganize indexing scripts + use Rust for Debian 2016-11-20 12:34:02 +01:00
Yorhel
5e39af459f Replace old Arch Linux scripts with new indexer 2016-11-06 15:26:20 +01:00
Yorhel
2da67d585c Various changes/fixes, 3 new distro versions 2015-04-28 08:27:29 +02:00
Yorhel
36301e1ffd util: Added a 'common.sh' for some common stuff and removed add_tar.sh 2012-07-25 15:27:23 +02:00
Yorhel
2622fad2d9 cron.sh: Fix typo 2012-07-18 11:01:38 +02:00
Yorhel
10e8d4acae Added search index table + simple XML-based search interface
The XML thing is supposed to be used for auto-completion, of course. The
current search implementation is very, very stupid and simple: Just a
prefix match on the man name, and simple detection of section stuff. I
suppose it'll suffice for now.
2012-07-17 18:49:38 +02:00
Yorhel
99ec200895 Added simple cron script
To be run on a daily basis
2012-07-07 10:52:20 +02:00