Archive/Import/Batch

From XOWA: the free, open-source, offline wiki application

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.

Decompression program

Batch script

  • Create a new config file called xowa_batch_wiki.gfs
  • Save the following to the file
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
;

Running

  • Create the following directories
    • C:\xowa\wiki\#dump\todo
    • C:\xowa\wiki\#dump\done
  • Move any .bz2 files to the todo directory.
  • Open a terminal and run the following java -jar xowa_windows.jar --cmd_file xowa_batch_wiki.gfs --app_mode cmd

Namespaces

XOWA

Getting started

Android

Help

Blog

Donate