Manual:CompressOld.php

compressOld.php is a script used to compress the text of old page revisions using gzip.

If used with option -t gzip , it compresses each revision text (including the current revision of all pages) and saves it back to the same record.

If used with option -t concat , it compresses only previous revisions of each page but keeps the current revision uncompressed. The text of all previous revisions of avery page is concatenated and saved to the first revision records of that page. The remaining intermediary records are converted into stubs pointing to that first record. The concatenation allows for better compression.

Attention: Bear in mind that after compression, the compressed texts will no longer be searchable/replaceable via SQL scripts. For this reason, ff all revisions are compressed, including the current ones, Extension:ReplaceText will no longer work since it makes use of SQL queries.

Usage
php compressOld.php [options...]

Options are:
 * -t :          set compression type to either:
 * gzip: compress revisions independently
 * concat: concatenate revisions and compress in chunks (default)


 * -c :    maximum number of revisions in a concat chunk
 * -b :    earliest date to check for uncompressed revisions
 * -e <end-date></tt>:      latest revision date to compress
 * -s <start-id></tt>:      the old_id to start from
 * -f <max-factor></tt>:    the maximum ratio of compressed chunk bytes to uncompressed avg. revision bytes
 * -h </tt>:     is a minimum number of KB, where <max-factor> cuts in
 * --extdb </tt>:  store specified revisions in an external cluster (untested)