Tech:Dumping a wiki

This page describes the process of making XML dumps of wikis, and putting them online at [//static.orain.org/common/dumps Orain Static].

To make a dump
Run  (the directory where the dumps will be saved must already exist, if they don't, please run   first)

Note using  is resource intensive. Also change the name of the wiki as appropriate based on the database table name for the wiki you wish to dump.

To turn dump into compressed zip
Note - This uses the zip file extension for compressing. Tar.gz is better but more intensive, and 7z has the best compression, but can be extremely resource intensive. Zip is preferred unless the XML dump is so big (depends but a rule of thumb is over 2GB), that max compression is required.

To remove the XML dump (after it has been compressed)
Note - Unless there is a reason to keep the dump files around (such as needing extra backups/fallbacks besides SQL dumps for a server move), they should be removed immediately for space reasons.

To remove the zip
Note - Same as the uncompressed dump, these should be removed when no longer required to preserve server space.