MediaWiki backup: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
mNo edit summary |
||
| Line 5: | Line 5: | ||
* Generate the list of all page name | * Generate the list of all page name | ||
: I modified the [http://www.thinklemon.com/wiki/MediaWiki:Google_Sitemaps Google Sitemaps] to [http://wiki.planetoid.info/lists.phps list.php]. Partial original code as follows | : I modified the [http://www.thinklemon.com/wiki/MediaWiki:Google_Sitemaps Google Sitemaps] to [http://wiki.planetoid.info/lists.phps list.php]. Partial original code as follows: | ||
<pre> | <pre> | ||
# ----------------------------------------------------- | # ----------------------------------------------------- | ||
| Line 42: | Line 42: | ||
'''Other approach''' | '''Other approach''' | ||
* [http://www.mediawiki.org/wiki/Manual:Moving_a_wiki Manual:Moving a wiki - MediaWiki] / [http://meta.wikimedia.org/wiki/Restore_Database Restore Database] | * [http://www.mediawiki.org/wiki/Manual:Moving_a_wiki Manual:Moving a wiki - MediaWiki] / [http://meta.wikimedia.org/wiki/Restore_Database Restore Database] | ||
similar approach | |||
* [http://www.chieftain.idv.tw/archives/2008/01/25/1337.html Reflection » Blog Archive » Export all the page names on your Mediawiki-powered Wiki] | |||
[[Category:MediaWiki]] | [[Category:MediaWiki]] | ||
Revision as of 10:05, 10 February 2008
| MediaWiki | v.1.6.7+ |
Easy backup method: Input the all page name into Special:Export
- Generate the list of all page name
- I modified the Google Sitemaps to list.php. Partial original code as follows:
# -----------------------------------------------------
# Start output
# -----------------------------------------------------
?>
<url>
<loc><?php echo fnXmlEncode( "http://" . $wgServerName . eregi_replace('\$1',$sPageName,$wgArticlePath) ) ?></loc>
<lastmod><?php echo fnTimestampToIso($row_rsPages['page_touched']); ?></lastmod>
<changefreq>weekly</changefreq>
<priority><?php echo $nPriority ?></priority>
</url>
<?php } while ($row_rsPages = mysql_fetch_assoc($rsPages)); ?>
</urlset>
I changed the output part as ...
# ----------------------------------------------------- # Start output # ----------------------------------------------------- ?> <?php echo fnXmlEncode( $sPageName ) ?> <?php } while ($row_rsPages = mysql_fetch_assoc($rsPages)); ?> </urlset>
- Copy the list of all page name to Special:Export
- Export the latest revision of all pages (not include the old revisions)
Other approach
similar approach