Knowledge Base / Appnel Solutions 

Last Modified
26 September 2007 @ 6pm

mt-rebuild

NAME

mt-rebuild - A utility script for rebuilding a Movable Type weblogs from the command-line or cron.

VERSION

0.2

SYNOPSIS

        # To rebuild all weblogs in the system.
        mt-rebuild -all

        # To rebuild an entire weblog:
        mt-rebuild -mode="all" -blog_id=0

        # To rebuild all archives, but not index templates:
        mt-rebuild -mode="all" -blog_id=0 -no_indexes

        # To rebuild a weblog archive type:
        mt-rebuild -mode="archive" -blog_id=0 -archive_type="(Individual|Daily|Weekly|Monthly|Category)"

        # To rebuild a specific weblog entry:
        mt-rebuild -mode="entry" -blog_id="0" -entry_id=0

        # To rebuild a specific weblog index template:
        mt-rebuild -mode="index" -blog_id="0" -template="your template name"

DESCRIPTION

mt-rebuild.pl is a utility script for rebuilding a MovableType template from the command-line as opposed to the standard MT browser interface. This is particularly helpful when combined with cron to automatically update a part of your site on a regular basis. An example would be the updating of syndicated content feeds using the mt-rssfeed plugin.

This script depreciates its more limited predecessor mt-rebuild-index.

INSTALLATION

To install mt-rebuild, place the script on in the main directory where MovableType has been installed. Read, Write and Execute permissions should only be assigned to the owner (you) with chmod mt-rebuild-index.pl 700.

LICENSE

The software is released under the Artistic License. The terms of the Artistic License are described at http://www.perl.com/language/misc/Artistic.html.


 

Submit Feedback on This Article

Your comments on how we can improve this article are appreciated. Please do not use the feedback form to submit support requests or question. We will not respond to or publish such queries submitted through this form.

Back to Home