User:Smalyshev (WMF)/Dump Test
Setting up dumps test for RDF dumps on mw-vagrant (requires working wikidata install with some items loaded):
- Enable
dumps
role for vagrant. - Copy missing scripts:
wikidatadumps-shared.sh
anddumpwikidatardf.sh
to/usr/local/bin
,/usr/local/etc/dump_functions.sh
and/usr/local/etc/set_dump_dirs.sh
. - Script expected
/etc/wikidump.conf.dumps
but vagrant has/etc/wikidump.conf
. Fixed with:sudo ln -s /etc/wikidump.conf /etc/wikidump.conf.dumps
/var/log/wikidatadump/
does not exist, created.MWScript.php
requires the scripts to be run underwww-data
, so that all output and temp directories need to be writable bywww-data
pagesPerBatch=400000
is hardcoded and too big for vagrant test setup, patched manually- Minimal dump size too small for test dump (hardcoded), patched manually
shards=8
hardcoded, too large for test dump, patched manually/vagrant/srv/dumps/output
is not writable bywww-data
, needs to be fixed externally since vagrant does not own permissions./vagrant/srv/dumps/output/temp
does not exist, created manually
set_dump_dirs.sh
used:
confsdir="/etc" repodir="/vagrant/srv/dumps/xmldumps-backup" apachedir="/var/www/w" cronsdir="/srv/dumps"
Command line:
sudo -u www-data bash /usr/local/bin/dumpwikidatardf.sh all ttl nt