what
moves HipparchiaDBs between the SQL system and the filesystem
current dump size for 5 corpora and support data:
sqldumps/ $ du -h -d1
774M ./authordbs
101M ./supportdbs
875M .
importing
- you acquire a set of
sqldump
files that can be read byHipparchiaServer
- you install the more general software framework as per the
HipparchiaYOUROSTYPE
instructions/scripts - after
config.ini
has been properly edited to point to thesqldump
files you can runreloadhipparchiaDBs.py
:
% cd ~/hipparchia_venv/HipparchiaSQLoader/
% ./reloadhipparchiaDBs.py
exporting
- you have an installed, configured and running copy of
HipparchiaServer
- optionally edit
config.ini
to point to where you want thesqldump
files to end up. The default is inside~/hipparchia_venv/HipparchiaData/sqldumps
- then you can run
extracthipparchiaDBs.py
:
% cd ~/hipparchia_venv/HipparchiaSQLoader/
% ./extracthipparchiaDBs.py
Little or no little editing of config.ini
is required to load or extract a working set of data. You can get away with zero edits if you position the raw data in the default location
(i.e., in a subfolder named sqldump
under ../HipparchiaData/
).
If you do not know where/how to find ../HipparchiaData/
or ~/hipparchia_venv/HipparchiaData/
, you might have problems. You will need to learn the basics of how to read and edit file path names so that you know where to put/find things.