2016-04-17 15:48:03 +00:00
<!DOCTYPE html>
< html dir = "ltr" >
< head >
< meta http-equiv = "content-type" content = "text/html;charset=UTF-8" / >
< title > Archive/Import/Batch - XOWA< / title >
< link rel = "shortcut icon" href = "https://gnosygnu.github.io/xowa/xowa_logo.png" / >
< link rel = "stylesheet" href = "https://gnosygnu.github.io/xowa/xowa_common.css" type = "text/css" >
< / head >
< body class = "mediawiki ltr sitedir-ltr ns-0 ns-subject skin-vector action-submit vector-animateLayout" spellcheck = "false" >
< div id = "mw-page-base" class = "noprint" > < / div >
< div id = "mw-head-base" class = "noprint" > < / div >
< div id = "content" class = "mw-body" >
< h1 id = "firstHeading" class = "firstHeading" > < span > Archive/Import/Batch< / span > < / h1 >
< div id = "bodyContent" class = "mw-body-content" >
< div id = "siteSub" > From XOWA: the free, open-source, offline wiki application< / div >
< div id = "contentSub" > < / div >
< div id = "mw-content-text" lang = "en" dir = "ltr" class = "mw-content-ltr" >
< table class = "metadata plainlinks ambox ambox-delete" style = "" >
< tr >
< td class = "mbox-empty-cell" >
< / td >
< td class = "mbox-text" style = "" >
< p >
< span class = "mbox-text-span" > Note: This page is obsolete. It is preserved for historical reference only.< / span >
< / p >
< / td >
< / tr >
< / table >
< p >
XOWA allows you to import multiple wikis with one command. Note that these instructions are Windows-centric. Linux/OS X users should be able to extrapolate.
< / p >
< h2 >
< span class = "mw-headline" id = "Decompression_program" > Decompression program< / span >
< / h2 >
< ul >
< li >
Download the 7-Zip command line version from < a href = "http://downloads.sourceforge.net/sevenzip/7za920.zip" rel = "nofollow" class = "external free" > http://downloads.sourceforge.net/sevenzip/7za920.zip< / a >
< / li >
< li >
Unzip the archive to < b > C:\xowa\bin\windows\7-Zip< / b > . When you are done, you should have a file called < b > C:\xowa\bin\windows\7-Zip\7za.exe< / b >
< / li >
< / ul >
< h2 >
< span class = "mw-headline" id = "Batch_script" > Batch script< / span >
< / h2 >
< ul >
< li >
Create a new config file called < b > xowa_batch_wiki.gfs< / b >
< / li >
< li >
Save the following to the file
< / li >
< / ul >
< pre >
app.bldr.cmds
.new_batch(
"
app.bldr.cmds
.add ('~{wiki_key}', 'core.cleanup').delete_wiki_('y').owner
.add ('~{wiki_key}', 'core.decompress_bz2').src_('~{bz2_fil}').owner
.add_many('~{wiki_key}', 'core.make_page', 'core.make_id', 'core.make_search_title', 'core.make_category', 'core.calc_stats').owner
.add ('~{wiki_key}', 'core.cleanup').delete_xml_('y').bz2_cmd_('move').bz2_fil_('~{bz2_fil}').owner
;
app.bldr.run;
"
)
.run
;
< / pre >
< h2 >
< span class = "mw-headline" id = "Running" > Running< / span >
< / h2 >
< ul >
< li >
Create the following directories
< ul >
< li >
< b > C:\xowa\wiki\#dump\todo< / b >
< / li >
< li >
< b > C:\xowa\wiki\#dump\done< / b >
< / li >
< / ul >
< / li >
< li >
Move any .bz2 files to the < b > todo< / b > directory.
< / li >
< li >
Open a terminal and run the following < code > java -jar xowa_windows.jar --cmd_file xowa_batch_wiki.gfs --app_mode cmd< / code >
< / li >
< / ul >
< / div >
< / div >
< / div >
< div id = "mw-head" class = "noprint" >
< div id = "left-navigation" >
< div id = "p-namespaces" class = "vectorTabs" >
< h3 > Namespaces< / h3 >
< ul >
< li id = "ca-nstab-main" class = "selected" > < span > < a id = "ca-nstab-main-href" href = "index.html" > Page< / a > < / span > < / li >
< / ul >
< / div >
< / div >
< / div >
< div id = 'mw-panel' class = 'noprint' >
< div id = 'p-logo' >
< a style = "background-image: url(https://gnosygnu.github.io/xowa/xowa_logo.png);" href = "http://xowa.org/" title = "Visit the main page" > < / a >
< / div >
< div class = "portal" id = 'xowa-portal-home' >
< h3 > XOWA< / h3 >
< div class = "body" >
< ul >
< li > < a href = "http://xowa.org/index.html" title = 'Visit the main page' > Main page< / a > < / li >
< li > < a href = "http://xowa.org/screenshots.html" title = 'See screenshots of XOWA' > Screenshots< / a > < / li >
< li > < a href = "http://xowa.org/home/wiki/Help/Download_XOWA.html" title = 'Download the XOWA application' > Download XOWA< / a > < / li >
< li > < a href = "http://xowa.org/home/wiki/Dashboard/Image_databases.html" title = 'Download offline wikis and image databases' > Download wikis< / a > < / li >
< / ul >
< / div >
< / div >
< div class = "portal" id = 'xowa-portal-started' >
< h3 > Getting started< / h3 >
< div class = "body" >
< ul >
< li > < a href = "http://xowa.org/home/wiki/App/Setup/System_requirements.html" title = 'Get XOWA's system requirements' > Requirements< / a > < / li >
< li > < a href = "http://xowa.org/home/wiki/App/Setup/Installation.html" title = 'Get instructions for installing XOWA' > Installation< / a > < / li >
< li > < a href = "http://xowa.org/home/wiki/App/Import/Simple_Wikipedia.html" title = 'Learn how to set up Simple Wikipedia' > Simple Wikipedia< / a > < / li >
< li > < a href = "http://xowa.org/home/wiki/App/Import/English_Wikipedia.html" title = 'Learn how to set up English Wikipedia' > English Wikipedia< / a > < / li >
< li > < a href = "http://xowa.org/home/wiki/App/Import/Other_wikis.html" title = 'Learn how to set up other Wikipedias' > Other Wikipedias< / a > < / li >
< / ul >
< / div >
< / div >
< div class = "portal" id = 'xowa-portal-android' >
< h3 > Android< / h3 >
< div class = "body" >
< ul >
< li > < a href = "http://xowa.org/home/wiki/Android/Setup.html" title = 'Setup XOWA on your Android device' > Setup< / a > < / li >
< / ul >
< / div >
< / div >
< div class = "portal" id = 'xowa-portal-help' >
< h3 > Help< / h3 >
< div class = "body" >
< ul >
< li > < a href = "http://xowa.org/home/wiki/Help/About.html" title = 'Get more information about XOWA' > About< / a > < / li >
< li > < a href = "http://xowa.org/home/wiki/Help/Contents.html" title = 'View a list of help topics' > Contents< / a > < / li >
< li > < a href = "http://xowa.org/home/wiki/Help/Media.html" title = 'Read what others have written about XOWA' > Media< / a > < / li >
< li > < a href = "http://xowa.org/home/wiki/Help/Feedback.html" title = 'Questions? Comments? Leave feedback for XOWA' > Feedback< / a > < / li >
< / ul >
< / div >
< / div >
< div class = "portal" id = 'xowa-portal-blog' >
< h3 > Blog< / h3 >
< div class = "body" >
< ul >
< li > < a href = "http://xowa.org/home/wiki/Blog.html" title = 'Follow XOWA' ' s development process ' > Current< / a > < / li >
< / ul >
< / div >
< / div >
< div class = "portal" id = 'xowa-portal-links' >
< h3 > Links< / h3 >
< div class = "body" >
< ul >
< li > < a href = "http://dumps.wikimedia.org/backup-index.html" title = "Get wiki datababase dumps directly from Wikimedia" > Wikimedia dumps< / a > < / li >
< li > < a href = "https://archive.org/search.php?query=xowa" title = "Search archive.org for XOWA files" > XOWA @ archive.org< / a > < / li >
< li > < a href = "http://en.wikipedia.org" title = "Visit Wikipedia (and compare to XOWA!)" > English Wikipedia< / a > < / li >
< / ul >
< / div >
< / div >
< div class = "portal" id = 'xowa-portal-donate' >
< h3 > Donate< / h3 >
< div class = "body" >
< ul >
< li > < a href = "https://archive.org/donate/index.php" title = "Support archive.org!" > archive.org< / a > < / li > <!-- listed first due to recent fire damages: http://blog.archive.org/2013/11/06/scanning - center - fire - please - help - rebuild/ -->
< li > < a href = "https://donate.wikimedia.org/wiki/Special:FundraiserRedirector" title = "Support Wikipedia!" > Wikipedia< / a > < / li >
<!-- <li><a href="" title="Support XOWA! (but only after you've supported archive.org and Wikipedia)">XOWA</a></li> -->
< / ul >
< / div >
< / div >
2016-04-17 18:00:49 +00:00
< div class = "portal" id = 'xowa-portal-image' >
< br / >
< a href = "https://play.google.com/store/apps/details?id=org.xowa" class = "image" >
< img width = '140px' src = "https://gnosygnu.github.io/xowa/en-play-badge.png" / >
< / a >
< / div >
2016-04-17 15:48:03 +00:00
< / div >
< / body >
< / html >