https://bugzilla.wikimedia.org/show_bug.cgi?id=62566

--- Comment #2 from Nemo <federicol...@tiscali.it> ---
Pasting here what I'm doing for one wiki so that I don't forget. Some manual
actions are also needed, but those might be an error in configuration so I'm
keeping everything together.

0) Checkouts
1) Replace the path (almost) everywhere:
    sed -i "s/\/a\/wikistats_git/MYESCAPEDPATH/g" dumps/bash/*sh dumps/perl/*pl
dumps/perl/*pm
2) Comment the path tests https://gerrit.wikimedia.org/r/118261 and adjust the
other settings including dumps_public, php, x (I put x=translatewiki), project
(I put wx); set the date variable to an 8 digit timestamp like 20140101 and add
/$date to the -i argument.
3) Create the directory $dumps_public/$project/$date and place your bz2 dump in
it.
4) Create the directories $csv, $csv/csv_$project/ , $csv/temp and set write
permissions
5) Manually create in the $csv directory a csv file
(csv_mw/StatisticsContentNamespaces.csv) like
http://stats.wikimedia.org/wikimedia/misc/StatisticsContentNamespaces.csv; in
my case
(https://translatewiki.net/w/api.php?action=query&meta=siteinfo&siprop=namespaces):

project code,language code,content namespaces
wx,translate,0|1102|1256|1214|1242|1250|1236|1202|1218|1254|1228|1240|1244|1210|1258|8|1230|1246|1212|1204|1220|1234|1216|1222|1238|1226|1208|1252|1200|1232|1206|1224

Run the script! Now it's been running for a few seconds without errors, maybe
I'll get some output. :D

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to