Difference between revisions of "MediaWiki backup"

From LemonWiki共筆
Jump to navigation Jump to search
m
m
Line 41: Line 41:
  
 
'''Other apporach'''
 
'''Other apporach'''
* [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]
  
  
 
[[Category:MediaWiki]]
 
[[Category:MediaWiki]]

Revision as of 07:43, 21 October 2007

Ψ 架設Wiki之前 --> MediaWiki安裝 --> 本地化設置 --> 介面修改 --> 功能擴充 --> 備份與管理 | 工具箱 Ψ

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>



Other apporach