Difference between revisions of "MediaWiki backup"

From LemonWiki共筆
Jump to navigation Jump to search
 
m
Line 1: Line 1:
 
<< [[MediaWikiInstallRecord]]
 
<< [[MediaWikiInstallRecord]]
  
 +
{{Wiki version| wiki_engine=MediaWiki | version=1.6.7 }}
 
Easy backup method: Input the all page name into [[Special:Export]]
 
Easy backup method: Input the all page name into [[Special:Export]]
  
Line 37: Line 38:
 
* Copy the list of all page name to [[Special:Export]]
 
* Copy the list of all page name to [[Special:Export]]
  
: Environment: MediaWiki: 1.6.7
 
  
  

Revision as of 02:02, 29 July 2006

<< MediaWikiInstallRecord

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