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)
21 lines
418 B
Bash
Executable file
21 lines
418 B
Bash
Executable file
#!/bin/sh
|
|
|
|
PSQL="psql -U manned -Awtq"
|
|
|
|
|
|
./alpine.sh current
|
|
./arch.sh current
|
|
./debian.sh current
|
|
./centos.sh current
|
|
./fedora.sh current
|
|
./ubuntu.sh current
|
|
|
|
echo "============ Updating SQL indices"
|
|
$PSQL -f update_indices.sql
|
|
|
|
echo "============ Updating HTML cache"
|
|
test -f .config && source ./.config
|
|
./cache-html.pl --batch=5 --delay=0.5 --maxbatches=100
|
|
|
|
echo "============ Updating database dumps"
|
|
./export.sh
|