# Archive/Import/Batch

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

| Note: This page is obsolete. It is preserved for historical reference only.

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

- Download the 7-Zip command line version from http://downloads.sourceforge.net/sevenzip/7za920.zip
- Unzip the archive to C:\xowa\bin\windows\7-Zip. When you are done, you should have a file called C:\xowa\bin\windows\7-Zip\7za.exe

## 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`

### XOWA

- Main page
- Screenshots
- Download XOWA
- Download wikis

### Getting started

- Requirements
- Installation
- Simple Wikipedia
- English Wikipedia
- Other Wikipedias

### Android

- Setup

### Help

- About
- Contents
- Media
- Feedback

### Blog

- Current

### Links

- Wikimedia dumps
- XOWA @ archive.org
- English Wikipedia

### Donate

- archive.org
- Wikipedia